]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
[rt41263] add a system test for dig +qr +ednsopt<invalid>
authorCurtis Blackburn <ckb@isc.org>
Thu, 10 Dec 2015 00:21:02 +0000 (16:21 -0800)
committerCurtis Blackburn <ckb@isc.org>
Thu, 10 Dec 2015 00:21:02 +0000 (16:21 -0800)
bin/tests/system/digdelv/tests.sh

index 0fc369b6094c68538b0f55b666b3dd8913b4497a..6dd0bb8c5eee8776edc0ffb99a1fdc40abdbe59c 100644 (file)
@@ -144,6 +144,15 @@ if [ -x ${DIG} ] ; then
   if [ $ret != 0 ]; then echo "I:failed"; fi
   status=`expr $status + $ret`
 
+  n=`expr $n + 1`
+  echo "I:checking dig +qr +ednsopt=08 does not cause an INSIST failure ($n)"
+  ret=0
+  $DIG $DIGOPTS @10.53.0.3 +ednsopt=08 +qr a a.example > dig.out.test$n || ret=1
+  grep "INSIST" < dig.out.test$n > /dev/null && ret=1
+  grep "FORMERR" < dig.out.test$n > /dev/null || ret=1
+  if [ $ret != 0 ]; then echo "I:failed"; fi
+  status=`expr $status + $ret`
+
 else
   echo "$DIG is needed, so skipping these dig tests"
 fi