[ $ret -eq 0 ] || echo_i "failed"
status=$((status + ret))
+echo_i "checking that on-limit-kasp rdatasets loaded after re-sign and re-start ($n)"
+ret=0
+stop_server ns1
+start_server --noclean --restart --port "${PORT}" ns1
+
+for _attempt in 0 1 2 3 4 5 6 7 8 9; do
+ ret=0
+ for rrcount in 500-txt 1000-txt 2000-txt 2050-txt; do
+ $DIG +tcp +dnssec txt "${rrcount}.on-limit-kasp" @10.53.0.1 -p "${PORT}" >"dig.out.ns1.$rrcount.test$n"
+ grep "status: NOERROR" "dig.out.ns1.$rrcount.test$n" >/dev/null || ret=1
+ grep "RRSIG" "dig.out.ns1.$rrcount.test$n" >/dev/null || ret=1
+ done
+ [ $ret -eq 0 ] && break
+ sleep 1
+done
+n=$((n + 1))
+[ $ret -eq 0 ] || echo_i "failed"
+status=$((status + ret))
+
echo_i "exit status: $status"
[ $status -eq 0 ] || exit 1