3 # Copyright (C) 2004, 2007, 2012 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.6 2007/06/19 23:47:01 tbox Exp
21 .
$SYSTEMTESTTOP/conf.sh
27 DIGOPTS
="+norec +tcp +noadd +nosea +nostat +noquest +nocmd -p 5300"
29 # Check the example. domain
31 $DIG $DIGOPTS example. @
10.53.0.1 soa
> dig.out.ns1.
test || ret
=1
32 echo "I:checking that first zone transfer worked"
35 while test $try -lt 120
37 $DIG $DIGOPTS example. @
10.53.0.2 soa
> dig.out.ns2.
test || ret
=1
38 if grep SERVFAIL
dig.out.ns2.
test > /dev
/null
43 $PERL ..
/digcomp.pl
dig.out.ns1.
test dig.out.ns2.
test || ret
=1
48 if [ $ret != 0 ]; then echo "I:failed"; fi
49 status
=`expr $status + $ret`
51 echo "I:checking that second zone transfer worked"
54 while test $try -lt 120
56 $DIG $DIGOPTS example. @
10.53.0.3 soa
> dig.out.ns3.
test || ret
=1
57 if grep SERVFAIL
dig.out.ns3.
test > /dev
/null
62 $PERL ..
/digcomp.pl
dig.out.ns1.
test dig.out.ns3.
test || ret
=1
67 if [ $ret != 0 ]; then echo "I:failed"; fi
68 status
=`expr $status + $ret`
70 echo "I:exit status: $status"