mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-25 02:57:38 +00:00
updating testsuite to support ssl-tests
This commit is contained in:
21
src/testsuite/connect-ssl-cert1-test.e
Normal file
21
src/testsuite/connect-ssl-cert1-test.e
Normal file
@@ -0,0 +1,21 @@
|
||||
# ngIRCd test suite
|
||||
# Server connect test
|
||||
|
||||
spawn openssl s_client -quiet -connect 127.0.0.1:6697
|
||||
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"
|
||||
}
|
||||
Reference in New Issue
Block a user