1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-28 21:06:16 +00:00
ngircd/src/testsuite/channel-test.e

75 lines
1.0 KiB
Plaintext
Raw Normal View History

2002-09-09 21:26:00 +00:00
# $Id: channel-test.e,v 1.2 2002/09/09 21:26:00 alex Exp $
2002-09-09 10:16:24 +00:00
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"
}
2002-09-09 21:26:00 +00:00
send "topic #channel :Test-Topic\r"
expect {
timeout { exit 1 }
":nick!~user@* TOPIC #channel :Test-Topic"
}
send "who #channel\r"
expect {
timeout { exit 1 }
"352 nick #channel ~user * 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"
}
2002-09-09 10:16:24 +00:00
send "part #channel\r"
expect {
timeout { exit 1 }
":nick!~user@* PART #channel :nick"
}
send "quit\r"
expect {
timeout { exit 1 }
"Connection closed"
}
# -eof-