about summary refs log tree commit diff
path: root/src/testsuite/channel-test.e
diff options
context:
space:
mode:
Diffstat (limited to 'src/testsuite/channel-test.e')
-rw-r--r--src/testsuite/channel-test.e38
1 files changed, 38 insertions, 0 deletions
diff --git a/src/testsuite/channel-test.e b/src/testsuite/channel-test.e
new file mode 100644
index 00000000..ce14613c
--- /dev/null
+++ b/src/testsuite/channel-test.e
@@ -0,0 +1,38 @@
+# $Id: channel-test.e,v 1.1 2002/09/09 10:16:24 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 "join #channel\r"
+expect {
+	timeout { exit 1 }
+	":nick!~user@* JOIN :#channel"
+}
+expect {
+	timeout { exit 1 }
+	"366"
+}
+
+send "part #channel\r"
+expect {
+	timeout { exit 1 }
+	":nick!~user@* PART #channel :nick"
+}
+
+send "quit\r"
+expect {
+	timeout { exit 1 }
+	"Connection closed"
+}
+
+# -eof-