summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 00:38:02 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-30 00:38:02 (EDT)
commit6f02c66931d16fb34382b0f8db2053875f0d233f (patch)
treeb3415b52d5a3febd50d08a2560c9f2ce455bd8fe /tests
parentda1d3924cc9972d18a87e06c7d66bced920dc5e5 (diff)
tests/badssl.sh: Print newline before TAP directives
Diffstat (limited to 'tests')
-rwxr-xr-xtests/badssl.sh11
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