about summary refs log tree commit diff
path: root/src/testsuite/misc-test.e
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2008-02-17 13:26:41 +0000
committerFlorian Westphal <fw@strlen.de>2008-02-26 23:49:33 +0100
commitddecfcd8310f77974803c9c67431809320646a55 (patch)
tree5828be71a1718a170a0b8873561cd7c0a7d5a76f /src/testsuite/misc-test.e
parent2f71fbb2a1319d1b0aca4c9564c2e51a88b4a578 (diff)
downloadngircd-ddecfcd8310f77974803c9c67431809320646a55.tar.gz
ngircd-ddecfcd8310f77974803c9c67431809320646a55.zip
Implemented IRC commands INFO, USERS (dummy), and SUMMON (dummy).
Diffstat (limited to 'src/testsuite/misc-test.e')
-rw-r--r--src/testsuite/misc-test.e50
1 files changed, 50 insertions, 0 deletions
diff --git a/src/testsuite/misc-test.e b/src/testsuite/misc-test.e
new file mode 100644
index 00000000..5c985f55
--- /dev/null
+++ b/src/testsuite/misc-test.e
@@ -0,0 +1,50 @@
+# $Id: misc-test.e,v 1.1 2008/02/17 13:26:42 alex Exp $
+
+spawn telnet localhost 6789
+expect {
+	timeout { exit 1 }
+	"Connected"
+}
+
+send "nick nick\r"
+send "user user . . :User\r"
+expect {
+	timeout { exit 1 }
+	"376"
+}
+
+send "summon\r"
+expect {
+	timeout { exit 1 }
+	"445"
+}
+
+send "users\r"
+expect {
+	timeout { exit 1 }
+	"446"
+}
+
+send "info\r"
+expect {
+	timeout { exit 1 }
+	"371"
+}
+expect {
+	timeout { exit 1 }
+	"374"
+}
+
+send "squit\r"
+expect {
+	timeout { exit 1 }
+	"481"
+}
+
+send "quit\r"
+expect {
+	timeout { exit 1 }
+	"ERROR"
+}
+
+# -eof-