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:
Evan Hunt
2023-04-24 12:34:50 +01:00
parent 108809ae84
commit 7de2d07eb0

View File

@@ -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