]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/channel-test.e
Change log messages issued for IP address forgeries
[ngircd-alex.git] / src / testsuite / channel-test.e
index 240abf64bd657b4c2faddaa9f02866727054e08e..39ad16a94ee4da3c454433bae5fdbfc3b6a696c9 100644 (file)
@@ -1,6 +1,7 @@
-# $Id: channel-test.e,v 1.3 2003/12/27 13:01:12 alex Exp $
+# ngIRCd test suite
+# Channel test
 
-spawn telnet localhost 6789
+spawn telnet 127.0.0.1 6789
 expect {
        timeout { exit 1 }
        "Connected"
@@ -69,10 +70,38 @@ expect {
        "@* PART #channel :nick"
 }
 
+send "join #channel\r"
+expect {
+       timeout { exit 1 }
+       "@* JOIN :#channel"
+}
+expect {
+       timeout { exit 1 }
+       "366"
+}
+
+send "join #channel2\r"
+expect {
+       timeout { exit 1 }
+       "@* JOIN :#channel2"
+}
+expect {
+       timeout { exit 1 }
+       "366"
+}
+
+send "join 0\r"
+expect {
+       timeout { exit 1 }
+       "@* PART #channel2 :nick"
+}
+expect {
+       timeout { exit 1 }
+       "@* PART #channel :nick"
+}
+
 send "quit\r"
 expect {
        timeout { exit 1 }
        "Connection closed"
 }
-
-# -eof-