From: Evan Hunt Date: Mon, 24 Apr 2023 11:34:50 +0000 (+0100) Subject: add a regression test for duplicate NS output X-Git-Tag: v9.19.13~8^2~1 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=7de2d07eb05658971408a2042eda37ba033d1f52;p=thirdparty%2Fbind9.git add a regression test for duplicate NS output check that an NS RRset with two servers is only printed once. --- diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index d222e57d104..6744c1aa781 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -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