From: Mark Andrews Date: Wed, 14 Nov 2018 00:14:49 +0000 (+1100) Subject: check that dig -q -m works X-Git-Tag: v9.13.4~30^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6f07fb41eca2e5b25c12a936af44ad5d938daf7;p=thirdparty%2Fbind9.git check that dig -q -m works --- diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index 19f3c1366c2..059e5eae273 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -495,6 +495,15 @@ if [ -x ${DIG} ] ; then if [ $ret != 0 ]; then echo_i "failed"; fi status=`expr $status + $ret` + n=`expr $n + 1` + echo_i "check that dig -q -m works ($n)" + ret=0 + $DIG $DIGOPTS @10.53.0.3 -q -m > dig.out.test$n 2>&1 + grep '^;-m\..*IN.*A$' dig.out.test$n > /dev/null || ret=1 + grep "Dump of all outstanding memory allocations" dig.out.test$n > /dev/null && ret=1 + if [ $ret != 0 ]; then echo_i "failed"; fi + status=`expr $status + $ret` + else echo_i "$DIG is needed, so skipping these dig tests" fi