]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/testsuite/channel-test.e
Support non-standard vsnprintf() return code
[ngircd-alex.git] / src / testsuite / channel-test.e
index ce14613c5f46bcce34a689544c68d9a8153f6cc4..16c67ad4a007eeeada1a6f08fedcc9571b2d069a 100644 (file)
@@ -1,4 +1,4 @@
-# $Id: channel-test.e,v 1.1 2002/09/09 10:16:24 alex Exp $
+# $Id: channel-test.e,v 1.4 2008/02/05 13:31:51 fw Exp $
 
 spawn telnet localhost 6789
 expect {
@@ -16,17 +16,87 @@ expect {
 send "join #channel\r"
 expect {
        timeout { exit 1 }
-       ":nick!~user@* JOIN :#channel"
+       "@* JOIN :#channel"
 }
 expect {
        timeout { exit 1 }
        "366"
 }
 
+send "topic #channel :Test-Topic\r"
+expect {
+       timeout { exit 1 }
+       "@* TOPIC #channel :Test-Topic"
+}
+
+send "who #channel\r"
+expect {
+       timeout { exit 1 }
+       "352 nick #channel"
+}
+expect {
+       timeout { exit 1 }
+       "* nick H@ :0 User"
+}
+expect {
+       timeout { exit 1 }
+       "315 nick #channel"
+}
+
+send "names #channel\r"
+expect {
+       timeout { exit 1 }
+       "353 nick = #channel :@nick"
+}
+expect {
+       timeout { exit 1 }
+       "366 nick #channel"
+}
+
+send "list\r"
+expect {
+       timeout { exit 1 }
+       "322 nick #channel 1 :Test-Topic"
+}
+expect {
+       timeout { exit 1 }
+       "323 nick :End of LIST"
+}
+
 send "part #channel\r"
 expect {
        timeout { exit 1 }
-       ":nick!~user@* PART #channel :nick"
+       "@* 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"