No empty .Rs/.Re
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / tests / system / xferquota / tests.sh
blob83ed43918b34cadb1affa55d84dcf8204f28a630
1 #!/bin/sh
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
20 SYSTEMTESTTOP=..
21 . $SYSTEMTESTTOP/conf.sh
24 # Perform tests
27 count=0
28 ticks=0
29 while [ $count != 300 ]; do
30 if [ $ticks = 1 ]; then
31 echo "I:Changing test zone..."
32 cp -f ns1/changing2.db ns1/changing.db
33 kill -HUP `cat ns1/named.pid`
35 sleep 1
36 ticks=`expr $ticks + 1`
37 seconds=`expr $ticks \* 1`
38 if [ $ticks = 360 ]; then
39 echo "I:Took too long to load zones"
40 exit 1
42 count=`cat ns2/zone*.bk | grep xyzzy | wc -l`
43 echo "I:Have $count zones up in $seconds seconds"
44 done
46 status=0
48 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
49 zone000099.example. @10.53.0.1 axfr -p 5300 > dig.out.ns1 || status=1
50 grep ";" dig.out.ns1
52 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
53 zone000099.example. @10.53.0.2 axfr -p 5300 > dig.out.ns2 || status=1
54 grep ";" dig.out.ns2
56 $PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
58 sleep 15
60 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
61 a.changing. @10.53.0.1 a -p 5300 > dig.out.ns1 || status=1
62 grep ";" dig.out.ns1
64 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd \
65 a.changing. @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
66 grep ";" dig.out.ns2
68 $PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1
70 echo "I:exit status: $status"
71 exit $status