Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / tests / system / notify / tests.sh
blob7b84b5d9f8d0055b0f9f82fd76ae5f62daea6c4c
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.33 2007/06/19 23:47:04 tbox Exp
20 SYSTEMTESTTOP=..
21 . $SYSTEMTESTTOP/conf.sh
23 status=0
25 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
26 @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
27 grep ";" dig.out.ns2
29 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
30 @10.53.0.3 a -p 5300 > dig.out.ns3 || status=1
31 grep ";" dig.out.ns3
33 $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
35 rm -f ns2/example.db
36 cp -f ns2/example2.db ns2/example.db
37 kill -HUP `cat ns2/named.pid`
38 sleep 45
40 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
41 @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
42 grep ";" dig.out.ns2
44 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
45 @10.53.0.3 a -p 5300 > dig.out.ns3 || status=1
46 grep ";" dig.out.ns3
48 $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
50 ###
51 # Why does not doing the stop not cause problems with the start further on?
52 ###
53 $PERL $SYSTEMTESTTOP/stop.pl . ns3
55 rm -f ns2/example.db
56 cp -f ns2/example3.db ns2/example.db
57 kill -HUP `cat ns2/named.pid`
58 sleep 45
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
64 grep ";" dig.out.ns2
66 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
67 @10.53.0.3 a -p 5300 > dig.out.ns3 || status=1
68 grep ";" dig.out.ns3
70 $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
72 $PERL $SYSTEMTESTTOP/stop.pl . ns2
74 rm -f ns2/example.db
75 cp -f ns2/example4.db ns2/example.db
77 $PERL $SYSTEMTESTTOP/start.pl . ns2
79 sleep 45
81 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
82 @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1
83 grep ";" dig.out.ns2
85 $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\
86 @10.53.0.3 a -p 5300 > dig.out.ns3 || status=1
87 grep ";" dig.out.ns3
89 $PERL ../digcomp.pl dig.out.ns2 dig.out.ns3 || status=1
91 echo "I:exit status: $status"
92 exit $status