tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2014, 2016 Internet Systems Consortium, Inc. ("ISC")
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
status=0
n=0
DIGOPTS="+tcp +noadd +nosea +nostat +nocmd -p 5300"
echo "I:checking DNSSEC SERVFAIL is cached ($n)"
ret=0
[ -s "sfcache.$n" ] && break
sleep 1
done
n=`expr $n + 1`
echo "I:checking SERVFAIL is returned from cache ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking that +cd bypasses cache check ($n)"
ret=0
n=`expr $n + 1`
echo "I:disabling server to force non-dnssec SERVFAIL"
echo "I:checking SERVFAIL is cached ($n)"
ret=0
[ -s "sfcache.$n" ] && break
sleep 1
done
n=`expr $n + 1`
echo "I:checking SERVFAIL is returned from cache ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking with +cd query ($n)"
ret=0
n=`expr $n + 1`
echo "I:checking with +dnssec query ($n)"
ret=0
n=`expr $n + 1`
echo "I:exit status: $status"