tests.sh revision ec5347e2c775f027573ce5648b910361aa926c01
#
# Copyright (C) 2004, 2005 Internet Systems Consortium, Inc. ("ISC")
# Copyright (C) 2000, 2001 Internet Software Consortium.
#
# 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.30 2007/06/18 23:47:32 tbox Exp $
DIGOPTS="+tcp +noadd +nosea +nostat +noquest +nocomm +nocmd"
status=0
echo "I:testing basic zone transfer functionality"
#
# Spin to allow the zone to tranfer.
#
do
tmp=0
if test $? -ne 0 ; then break; fi
echo "I: plain zone re-transfer"
sleep 5
done
echo "I:testing TSIG signed zone transfers"
#
# Spin to allow the zone to tranfer.
#
do
tmp=0
if test $? -ne 0 ; then break; fi
echo "I: plain zone re-transfer"
sleep 5
done
echo "I:testing ixfr-from-differences"
$PERL -i -p -e '
s/0\.0\.0\.0/0.0.0.1/;
s/1397051952/1397051953/
sleep 5
sleep 5
# ns3 has a journal iff it received an IXFR.
echo "I:exit status: $status"
exit $status