summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-10-29 18:12:17 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-10-29 18:12:17 +0100
commit141841135e271f763a20e840b4e8d7803b446bc4 (patch)
treeaa3dda6e183e81a360b9c4399399c78cdad21161 /tests
parent166a2d6a37b727dc4c493a5dc2ef4314c980851d (diff)
downloadgnutls-141841135e271f763a20e840b4e8d7803b446bc4.tar.gz
Better DANE test output.
Diffstat (limited to 'tests')
-rwxr-xr-xtests/suite/testdane7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/suite/testdane b/tests/suite/testdane
index 7e2c6bda9c..7ca9bc5654 100755
--- a/tests/suite/testdane
+++ b/tests/suite/testdane
@@ -29,10 +29,12 @@ fi
. $srcdir/../scripts/common.sh
+echo "*** Testing bad hosts"
# Not ok
HOSTS="bad-hash.dane.verisignlabs.com dane-broken.rd.nic.fr bad-params.dane.verisignlabs.com"
HOSTS="$HOSTS bad-sig.dane.verisignlabs.com"
for i in $HOSTS;do
+echo -n "$i: "
rm -f tmp
$CLI $i -p 443 --print-cert --insecure >tmp 2>&1 </dev/null
if [ $? != 0 ];then
@@ -45,15 +47,19 @@ if [ $? = 0 ];then
echo "Checking $i should have failed"
exit 1
fi
+echo "ok"
done
# Fine hosts
+echo ""
+echo "*** Testing good hosts"
HOSTS="torproject.org jhcloos.com good.dane.verisignlabs.com \
www.kumari.net"
HOSTS="$HOSTS nohats.ca"
# dane.nox.su
for i in $HOSTS;do
+echo -n "$i: "
rm -f tmp
$CLI $i -p 443 --print-cert --insecure >tmp 2>&1 </dev/null
if [ $? != 0 ];then
@@ -66,6 +72,7 @@ if [ $? != 0 ];then
echo "Error checking $i"
exit 1
fi
+echo "ok"
done