1
0
mirror of https://github.com/osmarks/ngircd.git synced 2025-08-07 22:33:44 +00:00
ngircd/src/testsuite/opless-channel-test.e
Alexander Barton 3f807e1045 Test suite: Don't use DNS lookups
Different operating systems do behave quite differently when doing DNS
lookups, for example "127.0.0.1" sometimes resolves to "localhost" and
sometimes to "localhost.localdomain" (for example OpenBSD). And other
systems resolve "localhost" to the real host name (for example Cygwin).

So not using DNS at all makes the test site much more portable.
2014-06-09 02:15:52 +02:00

34 lines
471 B
Plaintext

# ngIRCd test suite
# Op-less 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"
}
send "mode +Channel +t\r"
expect {
timeout { exit 1 }
"477"
}
send "quit\r"
expect {
timeout { exit 1 }
"Connection closed"
}