3 # Copyright (C) 2004, 2007 Internet Systems Consortium, Inc. ("ISC")
4 # Copyright (C) 2000, 2001 Internet Software Consortium.
6 # Permission to use, copy, modify, and/or distribute this software for any
7 # purpose with or without fee is hereby granted, provided that the above
8 # copyright notice and this permission notice appear in all copies.
10 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16 # PERFORMANCE OF THIS SOFTWARE.
18 # Id: tests.sh,v 1.25 2007/06/19 23:47:07 tbox Exp
21 .
$SYSTEMTESTTOP/conf.sh
29 while [ $count != 300 ]; do
30 if [ $ticks = 1 ]; then
31 echo "I:Changing test zone..."
32 cp -f ns
1/changing2.db ns
1/changing.db
33 kill -HUP `cat ns1/named.pid`
36 ticks
=`expr $ticks + 1`
37 seconds
=`expr $ticks \* 1`
38 if [ $ticks = 360 ]; then
39 echo "I:Took too long to load zones"
42 count
=`cat ns2/zone*.bk | grep xyzzy | wc -l`
43 echo "I:Have $count zones up in $seconds seconds"
48 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd \
49 zone000099.example. @
10.53.0.1 axfr
-p 5300 > dig.out.ns1 || status
=1
52 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd \
53 zone000099.example. @
10.53.0.2 axfr
-p 5300 > dig.out.ns2 || status
=1
56 $PERL ..
/digcomp.pl
dig.out.ns1
dig.out.ns2 || status
=1
60 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd \
61 a.changing. @
10.53.0.1 a
-p 5300 > dig.out.ns1 || status
=1
64 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd \
65 a.changing. @
10.53.0.2 a
-p 5300 > dig.out.ns2 || status
=1
68 $PERL ..
/digcomp.pl
dig.out.ns1
dig.out.ns2 || status
=1
70 echo "I:exit status: $status"