+# RFC 2812 Section 3.4.1
+
+send "motd\r"
+expect {
+ timeout { exit 1 }
+ "375"
+}
+expect {
+ timeout { exit 1 }
+ "372"
+}
+expect {
+ timeout { exit 1 }
+ "376"
+}
+
+send "motd ngircd.test.server\r"
+expect {
+ timeout { exit 1 }
+ "375"
+}
+expect {
+ timeout { exit 1 }
+ "372"
+}
+expect {
+ timeout { exit 1 }
+ "376"
+}
+
+send "motd doesnotexist\r"
+expect {
+ timeout { exit 1 }
+ "402"
+# note this is not specified in RFC 2812, but probably should be
+}
+
+# RFC 2812 Section 3.4.3
+
+send "version\r"
+expect {
+ timeout { exit 1 }
+ "351"
+}
+
+send "version ngircd.test.server\r"
+expect {
+ timeout { exit 1 }
+ "351"
+}
+
+send "version doesnotexist\r"
+expect {
+ timeout { exit 1 }
+ "402"
+}
+
+# RFC 2812 Section 3.4.6
+
+send "time\r"
+expect {
+ timeout { exit 1 }
+ "391"
+}
+
+send "time ngircd.test.server\r"
+expect {
+ timeout { exit 1 }
+ "391"
+}
+
+send "time doesnotexist\r"
+expect {
+ timeout { exit 1 }
+ "402"
+}
+
+# RFC 2812 Section 3.4.10
+
+send "info\r"
+expect {
+ timeout { exit 1 }
+ "371"
+}
+expect {
+ timeout { exit 1 }
+ "374"
+}
+
+# RFC 2812 Section 4.5
+