Sync usage with man page.
[netbsd-mini2440.git] / external / bsd / bind / dist / bin / tests / system / masterformat / tests.sh
bloba916ea5c82bcfea908e4c94594704c67e7b7f2fc
1 #!/bin/sh
3 # Copyright (C) 2005, 2007 Internet Systems Consortium, Inc. ("ISC")
5 # Permission to use, copy, modify, and/or distribute this software for any
6 # purpose with or without fee is hereby granted, provided that the above
7 # copyright notice and this permission notice appear in all copies.
9 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15 # PERFORMANCE OF THIS SOFTWARE.
17 # Id: tests.sh,v 1.4 2007/06/19 23:47:04 tbox Exp
19 SYSTEMTESTTOP=..
20 . $SYSTEMTESTTOP/conf.sh
22 DIGOPTS="+tcp +noauth +noadd +nosea +nostat +noquest +nocomm +nocmd"
24 status=0
26 echo "I:checking that master file in the raw format worked"
28 for server in 1 2
30 for name in ns mx a aaaa cname dname txt rrsig nsec dnskey ds
32 $DIG $DIGOPTS $name.example. $name @10.53.0.$server -p 5300
33 echo
34 done > dig.out.$server
35 done
37 diff dig.out.1 dig.out.2 || status=1
39 echo "I:exit status: $status"
40 exit $status
41 #!/bin/sh
43 # Copyright (C) 2005 Internet Systems Consortium, Inc. ("ISC")
45 # Permission to use, copy, modify, and distribute this software for any
46 # purpose with or without fee is hereby granted, provided that the above
47 # copyright notice and this permission notice appear in all copies.
49 # THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
50 # REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
51 # AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
52 # INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
53 # LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
54 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
55 # PERFORMANCE OF THIS SOFTWARE.
57 # Id: tests.sh,v 1.4 2007/06/19 23:47:04 tbox Exp
59 SYSTEMTESTTOP=..
60 . $SYSTEMTESTTOP/conf.sh
62 DIGOPTS="+tcp +noauth +noadd +nosea +nostat +noquest +nocomm +nocmd"
64 status=0
66 echo "I:checking that master file in the raw format worked"
68 for server in 1 2
70 for name in ns mx a aaaa cname dname txt rrsig nsec dnskey ds
72 $DIG $DIGOPTS $name.example. $name @10.53.0.$server -p 5300
73 echo
74 done > dig.out.$server
75 done
77 diff dig.out.1 dig.out.2 || status=1
79 echo "I:exit status: $status"
80 exit $status