]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
pullup: Test that a query for a security root succeeds.
authorBrian Wellington <source@isc.org>
Tue, 11 Jul 2000 00:43:45 +0000 (00:43 +0000)
committerBrian Wellington <source@isc.org>
Tue, 11 Jul 2000 00:43:45 +0000 (00:43 +0000)
bin/tests/system/dnssec/tests.sh

index cc26a1fdac6f0b95851fc2074828ca382f0897b8..0e15481325e006b15c321067a491d3392cd2fad5 100644 (file)
@@ -15,7 +15,7 @@
 # ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
 # SOFTWARE.
 
-# $Id: tests.sh,v 1.15.2.3 2000/07/10 23:46:58 bwelling Exp $
+# $Id: tests.sh,v 1.15.2.4 2000/07/11 00:43:45 bwelling Exp $
 
 #
 # Perform tests
@@ -119,5 +119,16 @@ n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
+# Check that the query for a security root is successful and has ad set
+
+echo "I:checking security root query"
+ret=0
+$DIG $DIGOPTS . @10.53.0.4 key > dig.out.ns4.test$n || ret=1
+grep "NOERROR" dig.out.ns4.test$n > /dev/null || ret=1
+grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
+n=`expr $n + 1`
+if [ $ret != 0 ]; then echo "I:failed"; fi
+status=`expr $status + $ret`
+
 echo "I:exit status: $status"
 exit $status