tests.sh revision 0c27b3fe77ac1d5094ba3521e8142d9e7973133f
#
# Copyright (C) 2012, 2015, 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/.
# $Id: tests.sh,v 1.1.4.11 2012/02/01 16:54:32 each Exp $
DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd"
status=0
ret=0
n=1
echo "I:fetching a.example from ns2's initial configuration ($n)"
n=`expr $n + 1`
ret=0
echo "I:verifying adb records in named.stats ($n)"
echo "I: checking for 1 entry in adb hash table in named.stats"
n=`expr $n + 1`
ret=0
echo "I: verifying cache statistics in named.stats ($n)"
n=`expr $n + 1`
echo "I: checking for 2 entries in adb hash table in named.stats"
ret=0
n=`expr $n + 1`
ret=0
echo "I:dumping initial stats for ns3"
echo "I:sending queries to ns3"
#$DIGCMD +tries=2 +time=1 +recurse @10.53.0.3 foo.info. any
echo "I:dumping updated stats for ns3 ($n)"
n=`expr $n + 1`
ret=0
echo "I: verifying recursing clients output in named.stats ($n)"
n=`expr $n + 1`
ret=0
echo "I: verifying active fetches output in named.stats ($n)"
n=`expr $n + 1`
echo "I: verifying active sockets output in named.stats"
ret=0
n=`expr $n + 1`
ret=0
# there should be 1 UDP and no TCP queries. As the TCP counter is zero
# no status line is emitted.
echo "I: verifying queries in progress in named.stats ($n)"
n=`expr $n + 1`
ret=0
echo "I: verifying bucket size output ($n)"
n=`expr $n + 1`
ret=0
n=`expr $n + 1`
echo "I:checking that zones with slash are properly shown in XML output ($n)"
grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN">' curl.out.${t} > /dev/null || ret=1
else
fi
ret=0
n=`expr $n + 1`
echo "I:checking that zones return their type ($n)"
grep '<zone name="32/1.0.0.127-in-addr.example" rdataclass="IN"><type>master</type>' curl.out.${t} > /dev/null || ret=1
else
fi
echo "I:exit status: $status"