4119. [func] Allow dig to set the message opcode. [RT #39550]

(cherry picked from commit c7463967db)
This commit is contained in:
Mark Andrews
2015-05-19 12:46:06 +10:00
parent ebe22d869a
commit 68e9ae1885
6 changed files with 55 additions and 3 deletions

View File

@@ -509,5 +509,12 @@ grep "skipping nameserver 'cname.tld' because it is a CNAME, while resolving 'al
if [ $ret != 0 ]; then echo "I:failed"; fi
status=`expr $status + $ret`
n=`expr $n + 1`
echo "I:check that unexpected opcodes are handled correctly (${n})"
ret=0
$DIG soa all-cnames @10.53.0.5 -p 5300 +opcode=status > dig.out.ns5.test${n} || ret=1
grep "status: NOTIMP" dig.out.ns5.test${n} > /dev/null || ret=1
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status