1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-11-01 14:33:00 +00:00
Files
ngircd/src/testsuite/whois-test.e
Alexander Barton 9e48f3f8f8 whois-test: handle local hostname = "localhost.localdomain"
Use the pattern "localhost*" for valid local hostnames.
2011-11-10 11:54:22 +01:00

54 lines
772 B
Plaintext

# ngIRCd test suite
# WHOIS test
spawn telnet localhost 6789
expect {
timeout { exit 1 }
"Connected"
}
send "nick nick\r"
send "user user . . :Real Name\r"
expect {
timeout { exit 1 }
"376"
}
send "whois nick\r"
expect {
timeout { exit 1 }
"311 nick nick ~user localhost* \* :Real Name\r"
}
send "whois *\r"
expect {
timeout { exit 1 }
"311 nick nick ~user localhost* \* :Real Name\r"
}
send "whois n*\r"
expect {
timeout { exit 1 }
"311 nick nick ~user localhost* \* :Real Name\r"
}
send "whois ?ick\r"
expect {
timeout { exit 1 }
"311 nick nick ~user localhost* \* :Real Name\r"
}
send "whois ????,n?*k\r"
expect {
timeout { exit 1 }
"311 nick nick ~user localhost* \* :Real Name\r"
}
send "quit\r"
expect {
timeout { exit 1 }
"ERROR"
}
# -eof-