there was a test case that could fail (and did) without logging
the fact.
n=$((n + 1))
echo_i "check that delv handles REFUSED when chasing DS records ($n)"
+ ret=0
delv_with_opts @10.53.0.2 +root xxx.example.tld A >delv.out.test$n 2>&1 || ret=1
grep ";; resolution failed: broken trust chain" delv.out.test$n >/dev/null || ret=1
if [ $ret -ne 0 ]; then echo_i "failed"; fi
n=$((n + 1))
echo_i "check NS output from delv +ns ($n)"
+ ret=0
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
+ if [ $ret -ne 0 ]; then echo_i "failed"; fi
status=$((status + ret))
n=$((n + 1))