tests.sh revision 633c5dc507fa3133a6d49a55cfe84bf4fd522c72
#
# Copyright (C) 2012 Internet Systems Consortium, Inc. ("ISC")
#
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $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
echo "I:fetching a.example from ns2's initial configuration"
ret=0
echo "I:verifying adb records in named.stats"
echo "I: checking for 1 entry in adb hash table"
ret=0
echo "I: verifying cache statistics in named.stats"
ret=0
echo "I: checking for 2 entries in adb hash table"
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"
ret=0
echo "I: verifying recursing clients output"
ret=0
echo "I: verifying active fetches output"
ret=0
echo "I: verifying active sockets output"
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"
ret=0
echo "I: verifying bucket size output"
echo "I:exit status: $status"
exit $status