mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
check that dig -q -m works
This commit is contained in:
parent
ba5d28dcfe
commit
f6f07fb41e
1 changed files with 9 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue