mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-12 14:50:00 -04:00
parent
c3c3b61da1
commit
de665b6570
1 changed files with 21 additions and 0 deletions
|
|
@ -284,6 +284,27 @@ if [ -x "$DIG" ]; then
|
|||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
n=$((n + 1))
|
||||
echo_i "checking dig +coflag works ($n)"
|
||||
ret=0
|
||||
dig_with_opts +tcp @10.53.0.3 +coflag +qr example >dig.out.test$n || ret=1
|
||||
grep "^; EDNS: version: 0, flags: co;" <dig.out.test$n >/dev/null || ret=1
|
||||
check_ttl_range dig.out.test$n "SOA" 300 || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
|
||||
if [ $HAS_PYYAML -ne 0 ]; then
|
||||
n=$((n + 1))
|
||||
echo_i "checking dig +coflag +yaml works ($n)"
|
||||
ret=0
|
||||
dig_with_opts +yaml +tcp @10.53.0.3 +coflag +qr example >dig.out.test$n || ret=1
|
||||
$PYTHON yamlget.py dig.out.test$n 0 message query_message_data OPT_PSEUDOSECTION EDNS flags >yamlget.out.test$n 2>&1 || ret=1
|
||||
read -r value <yamlget.out.test$n
|
||||
[ "$value" = "co" ] || ret=1
|
||||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status + ret))
|
||||
fi
|
||||
|
||||
n=$((n + 1))
|
||||
echo_i "checking dig +raflag works ($n)"
|
||||
ret=0
|
||||
|
|
|
|||
Loading…
Reference in a new issue