X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Ftestsuite%2Fchannel-test.e;h=f65c519652779a19603feea517cd9ac810ae8cef;hp=240abf64bd657b4c2faddaa9f02866727054e08e;hb=6171beb7ab5dc0586581660852576f437470df63;hpb=b79b315dd4b5fcefb781d1e1e012f71e578a5346 diff --git a/src/testsuite/channel-test.e b/src/testsuite/channel-test.e index 240abf64..f65c5196 100644 --- a/src/testsuite/channel-test.e +++ b/src/testsuite/channel-test.e @@ -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" @@ -63,10 +64,40 @@ expect { "323 nick :End of LIST" } -send "part #channel\r" +send "part #channel :bye bye\r" expect { timeout { exit 1 } - "@* PART #channel :nick" + "@* PART #channel :bye bye" +} + +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 :" +} +expect { + timeout { exit 1 } + "@* PART #channel :" } send "quit\r" @@ -74,5 +105,3 @@ expect { timeout { exit 1 } "Connection closed" } - -# -eof-