2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 14:07:59 +00:00

Merge branch '569-zero-system-test-failed-to-set-ret-0-and-send-output-to-dev-null' into 'master'

Resolve "zero system test failed to set ret=0 and send output to /dev/null"

Closes #569

See merge request isc-projects/bind9!825
This commit is contained in:
Mark Andrews 2018-10-03 01:36:56 -04:00
commit 33229e7fc5

View File

@ -31,12 +31,12 @@ do
$DIG $DIGOPTS @10.53.0.3 -f query.list > dig.out$i.5.test$n &
$DIG $DIGOPTS @10.53.0.3 -f query.list > dig.out$i.6.test$n &
wait
grep "status: SERVFAIL" dig.out$i.1.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.2.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.3.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.4.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.5.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.6.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.1.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.2.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.3.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.4.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.5.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.6.test$n > /dev/null && ret=1
[ $ret = 1 ] && break
i=`expr $i + 1`
echo_i "successfully completed pass $i of $passes"
@ -46,6 +46,7 @@ status=`expr $status + $ret`
n=`expr $n + 1`
echo_i "check repeated recursive lookups of non recurring TTL=0 responses get new values ($n)"
ret=0
count=`(
$DIG $DIGOPTS +short @10.53.0.3 foo.increment
$DIG $DIGOPTS +short @10.53.0.3 foo.increment
@ -71,12 +72,12 @@ do
$DIG $DIGOPTS @10.53.0.3 www.one.tld > dig.out$i.4.test$n
$DIG $DIGOPTS @10.53.0.3 www.one.tld > dig.out$i.5.test$n
$DIG $DIGOPTS @10.53.0.3 www.one.tld > dig.out$i.6.test$n
grep "status: SERVFAIL" dig.out$i.1.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.2.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.3.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.4.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.5.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.6.test$n && ret=1
grep "status: SERVFAIL" dig.out$i.1.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.2.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.3.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.4.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.5.test$n > /dev/null && ret=1
grep "status: SERVFAIL" dig.out$i.6.test$n > /dev/null && ret=1
[ $ret = 1 ] && break
i=`expr $i + 1`
echo_i "successfully completed pass $i of $passes"