diff options
-rwxr-xr-x | tests/badssl.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/badssl.sh b/tests/badssl.sh index 40d33c2..7a82656 100755 --- a/tests/badssl.sh +++ b/tests/badssl.sh @@ -27,15 +27,22 @@ do_test() local host="${2}" local port="${3}" shift 3 + local result= - command_ok_ "${ok} ${host}" -- \ - ${ok} "${TOP_BUILDDIR}/wolfssl-util" s_client \ + if ${ok} "${TOP_BUILDDIR}/wolfssl-util" s_client \ -connect "${host}.badssl.com:${port}" \ -servername "${host}.badssl.com" \ <<-EOF GET / HTTP/1.0 EOF + then + result='ok' + else + result='not ok' + fi + printf '\n' + result_ "${result}" -- "${ok} ${host}" } plan_ 40 |