summary refs log tree commit diff
path: root/src/testsuite/connect-ssl-cert2-test.e
blob: a4237537f26627744624d1c923f7b62a6a77d24d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# ngIRCd test suite
# Server connect test

spawn openssl s_client -quiet -connect 127.0.0.1:6697
expect {
        timeout { exit 1 }
        "*CN = my.second.domain.tld"
}

sleep 2
send "oper\r"
expect {
	timeout { exit 1 }
	"451"
}

send "quit\r"
expect {
	timeout { exit 1 }
	"Connection closed"
}