mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-11 12:47:40 +00:00

Don't use the "standard" IRC SSL port 6697, as this easily collides with real (ng)IRCd instances running on the same machine. And by reusing port 6790, which is already used by the "test server #2", we don't need any other port than the test suite already uses.
22 lines
299 B
Plaintext
22 lines
299 B
Plaintext
# ngIRCd test suite
|
|
# Server connect test
|
|
|
|
spawn openssl s_client -quiet -connect 127.0.0.1:6790
|
|
expect {
|
|
timeout { exit 1 }
|
|
"*CN = my.first.domain.tld"
|
|
}
|
|
|
|
sleep 2
|
|
send "oper\r"
|
|
expect {
|
|
timeout { exit 1 }
|
|
"451"
|
|
}
|
|
|
|
send "quit\r"
|
|
expect {
|
|
timeout { exit 1 }
|
|
"Connection closed"
|
|
}
|