Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / bin / tests / system / dialup / tests.sh
bloba74847ade5709ab918a54a8137b0d363243fb677
1 #!/bin/sh
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
20 SYSTEMTESTTOP=..
21 . $SYSTEMTESTTOP/conf.sh
23 status=0
25 rm -f dig.out.*
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"
33 ret=0
34 try=0
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
39 then
40 try=`expr $try + 1`
41 sleep 1
42 else
43 $PERL ../digcomp.pl dig.out.ns1.test dig.out.ns2.test || ret=1
44 break;
46 done
47 echo "I:try $try"
48 if [ $ret != 0 ]; then echo "I:failed"; fi
49 status=`expr $status + $ret`
51 echo "I:checking that second zone transfer worked"
52 ret=0
53 try=0
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
58 then
59 try=`expr $try + 1`
60 sleep 1
61 else
62 $PERL ../digcomp.pl dig.out.ns1.test dig.out.ns3.test || ret=1
63 break;
65 done
66 echo "I:try $try"
67 if [ $ret != 0 ]; then echo "I:failed"; fi
68 status=`expr $status + $ret`
70 echo "I:exit status: $status"
71 exit $status