123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107 |
- # ngIRCd test suite
- # Channel test
- spawn telnet 127.0.0.1 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 }
- "@* 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 :bye bye\r"
- expect {
- timeout { exit 1 }
- "@* 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"
- expect {
- timeout { exit 1 }
- "Connection closed"
- }
|