From: Curtis Blackburn Date: Wed, 9 Dec 2015 00:06:39 +0000 (-0800) Subject: [rt40105] add a system test for dig +zflag X-Git-Tag: v9.11.0a1~273 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=aeb7b6e145bc7c38bcc34e55872e992dad468d30;p=thirdparty%2Fbind9.git [rt40105] add a system test for dig +zflag --- diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index d5342380e73..0fc369b6094 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -135,6 +135,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 +zflag works, and that BIND properly ignores it ($n)" + ret=0 + $DIG $DIGOPTS +tcp @10.53.0.3 +zflag +qr A example > dig.out.test$n || ret=1 + sed -n '/Sending:/,/Got answer:/p' dig.out.test$n | grep "^;; flags: rd ad; MBZ: 0x4;" > /dev/null || ret=1 + sed -n '/Got answer:/,/AUTHORITY SECTION:/p' dig.out.test$n | grep "^;; flags: qr rd ra; QUERY: 1" > /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