Remove building with NOCRYPTO option
[minix.git] / external / bsd / bind / dist / bin / tests / system / lwresd / tests.sh
bloba4edab34609be7ba50973bdf3d16a2874fd3f2f3
1 #!/bin/sh
3 # Copyright (C) 2004, 2007, 2011-2013 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.22 2012/02/03 23:46:58 tbox Exp
20 SYSTEMTESTTOP=..
21 . $SYSTEMTESTTOP/conf.sh
23 status=0
24 echo "I:waiting for nameserver to load"
25 for i in 0 1 2 3 4 5 6 7 8 9
27 ret=0
28 for zone in . example1 e.example1 example2 10.10.10.in-addr.arpa \
29 ip6.int ip6.arpa
31 $DIG +tcp -p 5300 @10.53.0.1 soa $zone > dig.out
32 grep "status: NOERROR" dig.out > /dev/null || ret=1
33 grep "ANSWER: 1," dig.out > /dev/null || ret=1
34 done
35 test $ret = 0 && break
36 sleep 1
37 done
38 if [ $ret != 0 ]; then echo "I:failed"; fi
39 status=`expr $status + $ret`
41 echo "I:using resolv.conf"
42 ret=0
43 for i in 0 1 2 3 4 5 6 7 8 9
45 grep ' running$' lwresd1/lwresd.run > /dev/null && break
46 sleep 1
47 done
48 ./lwtest || ret=1
49 if [ $ret != 0 ]; then
50 echo "I:failed"
52 status=`expr $status + $ret`
54 $PERL $SYSTEMTESTTOP/stop.pl . lwresd1
56 mv lwresd1/lwresd.run lwresd1/lwresd.run.resolv
58 $PERL $SYSTEMTESTTOP/start.pl . lwresd1 -- "-m record,size,mctx -c lwresd.conf -d 99 -g"
60 echo "I:using lwresd.conf"
61 ret=0
62 for i in 0 1 2 3 4 5 6 7 8 9
64 grep ' running$' lwresd1/lwresd.run > /dev/null && break
65 sleep 1
66 done
67 ./lwtest || ret=1
68 if [ $ret != 0 ]; then
69 echo "I:failed"
71 status=`expr $status + $ret`
73 echo "I:exit status: $status"
74 exit $status