forked from wolfSSL/wolfssl
fix unit test
This commit is contained in:
@@ -388,19 +388,8 @@ else
|
|||||||
echo 'skipping TLS1.3 stapling tests.' 1>&2
|
echo 'skipping TLS1.3 stapling tests.' 1>&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
printf '%s\n\n' "------------- TEST CASE 1 SHOULD PASS ------------------------"
|
|
||||||
# client test against our own server - GOOD CERT
|
|
||||||
./examples/server/server -c certs/ocsp/server1-cert.pem -R "$ready_file2" \
|
|
||||||
-k certs/ocsp/server1-key.pem -p $port3 &
|
|
||||||
wolf_pid3=$!
|
|
||||||
wait_for_readyFile "$ready_file2" $wolf_pid3 $port3
|
|
||||||
./examples/client/client -C -A certs/ocsp/root-ca-cert.pem -W 1 -p $port3
|
|
||||||
RESULT=$?
|
|
||||||
[ $RESULT -ne 0 ] && printf '\n\n%s\n' "Client connection 1 failed" && exit 1
|
|
||||||
printf '%s\n\n' "Test PASSED!"
|
|
||||||
|
|
||||||
# DTLS 1.2 and 1.3 cases
|
# DTLS 1.2 and 1.3 cases
|
||||||
if ./examples/client/client -? 2>&1 | grep -q 'DTLS'; then
|
if ./examples/client/client -? 2>&1 | grep -q 'DTLSv1.2'; then
|
||||||
printf '%s\n\n' "------------- TEST CASE DTLS-1 SHOULD PASS -------------------"
|
printf '%s\n\n' "------------- TEST CASE DTLS-1 SHOULD PASS -------------------"
|
||||||
# client test against our own server, must staple - GOOD CERT
|
# client test against our own server, must staple - GOOD CERT
|
||||||
echo $ready_file2
|
echo $ready_file2
|
||||||
@@ -415,7 +404,9 @@ if ./examples/client/client -? 2>&1 | grep -q 'DTLS'; then
|
|||||||
RESULT=$?
|
RESULT=$?
|
||||||
[ $RESULT -ne 0 ] && printf '\n\n%s\n' "Client connection 5 failed" && exit 1
|
[ $RESULT -ne 0 ] && printf '\n\n%s\n' "Client connection 5 failed" && exit 1
|
||||||
printf '%s\n\n' "Test PASSED!"
|
printf '%s\n\n' "Test PASSED!"
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ./examples/client/client -? 2>&1 | grep -q 'DTLSv1.3'; then
|
||||||
printf '%s\n\n' "------------- TEST CASE DTLS-2 SHOULD PASS -------------------"
|
printf '%s\n\n' "------------- TEST CASE DTLS-2 SHOULD PASS -------------------"
|
||||||
# client test against our own server, must staple - GOOD CERT
|
# client test against our own server, must staple - GOOD CERT
|
||||||
./examples/server/server -c certs/ocsp/server1-cert.pem -R "$ready_file2" \
|
./examples/server/server -c certs/ocsp/server1-cert.pem -R "$ready_file2" \
|
||||||
|
Reference in New Issue
Block a user