mirror of
https://github.com/isc-projects/bind9.git
synced 2026-07-16 04:42:56 -04:00
add a regression test for duplicate NS output
check that an NS RRset with two servers is only printed once.
This commit is contained in:
parent
108809ae84
commit
7de2d07eb0
1 changed files with 7 additions and 0 deletions
|
|
@ -1404,6 +1404,13 @@ if [ -x "$DELV" ] ; then
|
|||
if [ $ret -ne 0 ]; then echo_i "failed"; fi
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "check NS output from delv +ns ($n)"
|
||||
delv_with_opts -i +ns +nortrace +nostrace +nomtrace +novtrace +hint=../common/root.hint ns example > delv.out.test$n || ret=1
|
||||
lines=$(awk '$1 == "example." && $4 == "NS" {print}' delv.out.test$n | wc -l)
|
||||
[ $lines -eq 2 ] || ret=1
|
||||
status=$((status+ret))
|
||||
|
||||
n=$((n+1))
|
||||
echo_i "checking delv +ns (no validation) ($n)"
|
||||
ret=0
|
||||
|
|
|
|||
Loading…
Reference in a new issue