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.33 2007/06/19 23:47:04 tbox Exp
21 .
$SYSTEMTESTTOP/conf.sh
25 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
26 @
10.53.0.2 a
-p 5300 > dig.out.ns2 || status
=1
29 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
30 @
10.53.0.3 a
-p 5300 > dig.out.ns3 || status
=1
33 $PERL ..
/digcomp.pl
dig.out.ns2
dig.out.ns3 || status
=1
36 cp -f ns
2/example2.db ns
2/example.db
37 kill -HUP `cat ns2/named.pid`
40 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
41 @
10.53.0.2 a
-p 5300 > dig.out.ns2 || status
=1
44 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
45 @
10.53.0.3 a
-p 5300 > dig.out.ns3 || status
=1
48 $PERL ..
/digcomp.pl
dig.out.ns2
dig.out.ns3 || status
=1
51 # Why does not doing the stop not cause problems with the start further on?
53 $PERL $SYSTEMTESTTOP/stop.pl . ns3
56 cp -f ns
2/example3.db ns
2/example.db
57 kill -HUP `cat ns2/named.pid`
60 $PERL $SYSTEMTESTTOP/start.pl . ns3
62 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
63 @
10.53.0.2 a
-p 5300 > dig.out.ns2 || status
=1
66 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
67 @
10.53.0.3 a
-p 5300 > dig.out.ns3 || status
=1
70 $PERL ..
/digcomp.pl
dig.out.ns2
dig.out.ns3 || status
=1
72 $PERL $SYSTEMTESTTOP/stop.pl . ns2
75 cp -f ns
2/example4.db ns
2/example.db
77 $PERL $SYSTEMTESTTOP/start.pl . ns2
81 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
82 @
10.53.0.2 a
-p 5300 > dig.out.ns2 || status
=1
85 $DIG +tcp
+noadd
+nosea
+nostat
+noquest
+nocomm
+nocmd a.example.\
86 @
10.53.0.3 a
-p 5300 > dig.out.ns3 || status
=1
89 $PERL ..
/digcomp.pl
dig.out.ns2
dig.out.ns3 || status
=1
91 echo "I:exit status: $status"