3 # Copyright (C) 2004, 2007, 2010-2012 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.8 2011/05/26 23:47:28 tbox Exp
20 .
$SYSTEMTESTTOP/conf.sh
27 DIGOPTS
="+tcp +noadd +nosea +nostat +nocmd +dnssec -p 5300"
29 echo "I:checking that DNSKEY reference by DLV validates as secure ($n)"
31 $DIG $DIGOPTS child1.utld dnskey @
10.53.0.5 > dig.out.ns5.
test$n || ret
=1
32 grep "flags:.*ad.*QUERY" dig.out.ns5.
test$n > /dev
/null || ret
=1
34 if [ $ret != 0 ]; then echo "I:failed"; fi
35 status
=`expr $status + $ret`
37 echo "I:checking that child DNSKEY reference by DLV validates as secure ($n)"
39 $DIG $DIGOPTS grand.child1.utld dnskey @
10.53.0.5 > dig.out.ns5.
test$n || ret
=1
40 grep "flags:.*ad.*QUERY" dig.out.ns5.
test$n > /dev
/null || ret
=1
42 if [ $ret != 0 ]; then echo "I:failed"; fi
43 status
=`expr $status + $ret`
45 echo "I:checking that SOA reference by DLV in a DRUZ with DS validates as secure ($n)"
47 $DIG $DIGOPTS child1.druz soa @
10.53.0.5 > dig.out.ns5.
test$n || ret
=1
48 grep "flags:.*ad.*QUERY" dig.out.ns5.
test$n > /dev
/null || ret
=1
50 if [ $ret != 0 ]; then echo "I:failed"; fi
51 status
=`expr $status + $ret`
53 echo "I:checking that child SOA reference by DLV in a DRUZ with DS validates as secure ($n)"
55 $DIG $DIGOPTS grand.child1.druz soa @
10.53.0.5 > dig.out.ns5.
test$n || ret
=1
56 grep "flags:.*ad.*QUERY" dig.out.ns5.
test$n > /dev
/null || ret
=1
58 if [ $ret != 0 ]; then echo "I:failed"; fi
59 status
=`expr $status + $ret`
61 echo "I:exit status: $status"