From 6fe5cc5aea7072e531be8f044d15771eb921633a Mon Sep 17 00:00:00 2001 From: Curtis Blackburn Date: Wed, 9 Dec 2015 16:21:02 -0800 Subject: [PATCH] [rt41263] add a system test for dig +qr +ednsopt --- bin/tests/system/digdelv/tests.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index 0fc369b609..6dd0bb8c5e 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -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