diff --git a/bin/tests/system/acl/tests.sh b/bin/tests/system/acl/tests.sh index 27efd5cde8..7db3e3eb71 100644 --- a/bin/tests/system/acl/tests.sh +++ b/bin/tests/system/acl/tests.sh @@ -181,4 +181,4 @@ $DIG example. soa @10.53.0.2 +subnet="192.0.2.128/32" -p 5300 > dig.out.${t} grep "CLIENT-SUBNET.*192.0.2.128/32/24" dig.out.${t} > /dev/null || { echo "I:test $t failed" ; status=1; } echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/additional/tests.sh b/bin/tests/system/additional/tests.sh index 0221080596..65ea9bc497 100644 --- a/bin/tests/system/additional/tests.sh +++ b/bin/tests/system/additional/tests.sh @@ -139,4 +139,5 @@ if [ $ret -eq 1 ] ; then echo "I: failed"; status=1 fi -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/addzone/tests.sh b/bin/tests/system/addzone/tests.sh index 528cf33375..1a2a8ee3dd 100755 --- a/bin/tests/system/addzone/tests.sh +++ b/bin/tests/system/addzone/tests.sh @@ -381,4 +381,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/allow_query/tests.sh b/bin/tests/system/allow_query/tests.sh index 0592c342d4..afb630f37c 100644 --- a/bin/tests/system/allow_query/tests.sh +++ b/bin/tests/system/allow_query/tests.sh @@ -630,5 +630,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status - +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/autosign/tests.sh b/bin/tests/system/autosign/tests.sh index 6a3a50a769..15e26b3e1c 100644 --- a/bin/tests/system/autosign/tests.sh +++ b/bin/tests/system/autosign/tests.sh @@ -1217,4 +1217,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/builtin/tests.sh b/bin/tests/system/builtin/tests.sh index b51cf450f2..8c1aea3990 100644 --- a/bin/tests/system/builtin/tests.sh +++ b/bin/tests/system/builtin/tests.sh @@ -123,4 +123,5 @@ $DIG +norec +nsid foo @10.53.0.3 -p 5300 > dig.out.ns3.$n grep "^; NSID: .* (\"this.is.a.test.of.server-id\")$" dig.out.ns3.$n > /dev/null || ret=1 if [ $ret != 0 ] ; then echo I:failed; status=`expr $status + $ret`; fi -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/cacheclean/tests.sh b/bin/tests/system/cacheclean/tests.sh index 539550fd99..7c0dbe0b7c 100644 --- a/bin/tests/system/cacheclean/tests.sh +++ b/bin/tests/system/cacheclean/tests.sh @@ -225,4 +225,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/case/tests.sh b/bin/tests/system/case/tests.sh index 54ffd9e124..6cd3d7f879 100644 --- a/bin/tests/system/case/tests.sh +++ b/bin/tests/system/case/tests.sh @@ -137,5 +137,7 @@ echo "I:check A owner case is transfered to slave ($n)" ret=0 $DIG axfr dynamic @10.53.0.2 -p 5300 > dig.ns2.test$n $PERL ../digcomp.pl dig.ns2.test$n postns1.good || ret=1 +status=`expr $status + $ret` + echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/catz/tests.sh b/bin/tests/system/catz/tests.sh index 3ea927c52f..54a8634271 100644 --- a/bin/tests/system/catz/tests.sh +++ b/bin/tests/system/catz/tests.sh @@ -373,4 +373,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/checkconf/tests.sh b/bin/tests/system/checkconf/tests.sh index a04601a689..dcc57a5c93 100644 --- a/bin/tests/system/checkconf/tests.sh +++ b/bin/tests/system/checkconf/tests.sh @@ -293,4 +293,4 @@ if [ $ret != 0 ]; then echo "I:failed"; ret=1; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/checkds/tests.sh b/bin/tests/system/checkds/tests.sh index 5fb1f65b45..f6ab8fbc34 100644 --- a/bin/tests/system/checkds/tests.sh +++ b/bin/tests/system/checkds/tests.sh @@ -176,4 +176,4 @@ status=`expr $status + $ret` if [ $status = 0 ]; then $SHELL clean.sh; fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/checknames/tests.sh b/bin/tests/system/checknames/tests.sh index 1480442f6e..0abea09fc0 100644 --- a/bin/tests/system/checknames/tests.sh +++ b/bin/tests/system/checknames/tests.sh @@ -151,4 +151,5 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` n=`expr $n + 1` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/checkzone/tests.sh b/bin/tests/system/checkzone/tests.sh index d5a04d2c4a..f391aff631 100644 --- a/bin/tests/system/checkzone/tests.sh +++ b/bin/tests/system/checkzone/tests.sh @@ -171,4 +171,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/cookie/tests.sh b/bin/tests/system/cookie/tests.sh index 10f4198fd7..f28f3775e4 100755 --- a/bin/tests/system/cookie/tests.sh +++ b/bin/tests/system/cookie/tests.sh @@ -137,4 +137,4 @@ status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/coverage/tests.sh b/bin/tests/system/coverage/tests.sh index 099bdefabd..228ab8aacb 100644 --- a/bin/tests/system/coverage/tests.sh +++ b/bin/tests/system/coverage/tests.sh @@ -81,4 +81,4 @@ for dir in [0-9][0-9]-*; do done echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/database/tests.sh b/bin/tests/system/database/tests.sh index 8540617260..bec9112c5e 100644 --- a/bin/tests/system/database/tests.sh +++ b/bin/tests/system/database/tests.sh @@ -57,4 +57,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dialup/tests.sh b/bin/tests/system/dialup/tests.sh index 40da054227..bcbc71873a 100644 --- a/bin/tests/system/dialup/tests.sh +++ b/bin/tests/system/dialup/tests.sh @@ -68,4 +68,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/digdelv/clean.sh b/bin/tests/system/digdelv/clean.sh index 0f442fb59e..115fb0b4c6 100644 --- a/bin/tests/system/digdelv/clean.sh +++ b/bin/tests/system/digdelv/clean.sh @@ -14,7 +14,7 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -rm -f dig.out.test* +rm -f dig.out.*test* rm -f delv.out.test* rm -f */named.memstats rm -f */named.run diff --git a/bin/tests/system/digdelv/tests.sh b/bin/tests/system/digdelv/tests.sh index c22e621b01..700617b61f 100644 --- a/bin/tests/system/digdelv/tests.sh +++ b/bin/tests/system/digdelv/tests.sh @@ -263,7 +263,7 @@ if [ -x ${DIG} ] ; then echo "I:checking dig +subnet with various prefix lengths ($n)" ret=0 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24; do - $DIG $DIGOPTS +tcp @10.53.0.2 +subnet=255.255.255.255/$i A a.example > dig.out.test$n 2>&1 || ret=1 + $DIG $DIGOPTS +tcp @10.53.0.2 +subnet=255.255.255.255/$i A a.example > dig.out.$i.test$n 2>&1 || ret=1 case $i in 1|9|17) octet=128 ;; 2|10|18) octet=192 ;; @@ -279,8 +279,8 @@ if [ -x ${DIG} ] ; then 9|10|11|12|13|14|15|16) addr="255.${octet}.0.0";; 17|18|19|20|21|22|23|24) addr="255.255.${octet}.0" ;; esac - grep "FORMERR" < dig.out.test.$p.$n > /dev/null && ret=1 - grep "CLIENT-SUBNET: $addr/$i/0" < dig.out.test$n > /dev/null || ret=1 + grep "FORMERR" < dig.out.$i.test$n > /dev/null && ret=1 + grep "CLIENT-SUBNET: $addr/$i/0" < dig.out.$i.test$n > /dev/null || ret=1 done if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` @@ -510,7 +510,8 @@ if [ -x ${DELV} ] ; then if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` - exit $status + echo "I:exit status: $status" + [ $status -eq 0 ] || exit 1 else echo "$DELV is needed, so skipping these delv tests" fi diff --git a/bin/tests/system/dlv/tests.sh b/bin/tests/system/dlv/tests.sh index e3ba63713f..0155ccf683 100644 --- a/bin/tests/system/dlv/tests.sh +++ b/bin/tests/system/dlv/tests.sh @@ -59,4 +59,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dlvauto/tests.sh b/bin/tests/system/dlvauto/tests.sh index 6e238e6c23..9959cf2bdc 100644 --- a/bin/tests/system/dlvauto/tests.sh +++ b/bin/tests/system/dlvauto/tests.sh @@ -62,4 +62,5 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dlz/tests.sh b/bin/tests/system/dlz/tests.sh index c4df4fab49..101e4ce46e 100644 --- a/bin/tests/system/dlz/tests.sh +++ b/bin/tests/system/dlz/tests.sh @@ -79,4 +79,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dlzexternal/tests.sh b/bin/tests/system/dlzexternal/tests.sh index 1b8313cdd8..285ea20b00 100644 --- a/bin/tests/system/dlzexternal/tests.sh +++ b/bin/tests/system/dlzexternal/tests.sh @@ -202,4 +202,5 @@ lookups=`grep "lookup #.*\.not\.there" ns1/named.run | wc -l` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dname/tests.sh b/bin/tests/system/dname/tests.sh index d22f54b63d..a451e0fd98 100644 --- a/bin/tests/system/dname/tests.sh +++ b/bin/tests/system/dname/tests.sh @@ -65,4 +65,4 @@ status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dns64/tests.sh b/bin/tests/system/dns64/tests.sh index 26808d9b73..fc4bb59a74 100644 --- a/bin/tests/system/dns64/tests.sh +++ b/bin/tests/system/dns64/tests.sh @@ -1370,4 +1370,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 5e9a079a2d..4da4adb4d7 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -3295,4 +3295,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dnstap/tests.sh b/bin/tests/system/dnstap/tests.sh index 2f811e4239..b5adfe9bd8 100644 --- a/bin/tests/system/dnstap/tests.sh +++ b/bin/tests/system/dnstap/tests.sh @@ -174,4 +174,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dscp/tests.sh b/bin/tests/system/dscp/tests.sh index 22d1ab2b1e..56ac889682 100644 --- a/bin/tests/system/dscp/tests.sh +++ b/bin/tests/system/dscp/tests.sh @@ -38,4 +38,6 @@ do done test $ret = 0 || { echo "I:failed"; status=`expr $status + $ret`; } done -exit $status + +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dsdigest/tests.sh b/bin/tests/system/dsdigest/tests.sh index 67b0b2f11b..7d8877a2fa 100644 --- a/bin/tests/system/dsdigest/tests.sh +++ b/bin/tests/system/dsdigest/tests.sh @@ -56,4 +56,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/dyndb/tests.sh b/bin/tests/system/dyndb/tests.sh index 335e5cea93..995d5b2a23 100644 --- a/bin/tests/system/dyndb/tests.sh +++ b/bin/tests/system/dyndb/tests.sh @@ -147,4 +147,5 @@ status=`expr $status + $ret` test_del test6.ipv6.example.nil. AAAA || ret=1 status=`expr $status + $ret` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/ecdsa/tests.sh b/bin/tests/system/ecdsa/tests.sh index 349e0f30a2..8834d9fce3 100644 --- a/bin/tests/system/ecdsa/tests.sh +++ b/bin/tests/system/ecdsa/tests.sh @@ -39,4 +39,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/ednscompliance/tests.sh b/bin/tests/system/ednscompliance/tests.sh index 2c474fae4c..d5ff96dbf0 100644 --- a/bin/tests/system/ednscompliance/tests.sh +++ b/bin/tests/system/ednscompliance/tests.sh @@ -111,4 +111,4 @@ status=`expr $status + $ret` n=`expr $n + 1` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/emptyzones/tests.sh b/bin/tests/system/emptyzones/tests.sh index 98183d3aa6..9ded980448 100644 --- a/bin/tests/system/emptyzones/tests.sh +++ b/bin/tests/system/emptyzones/tests.sh @@ -40,4 +40,5 @@ grep "status: REFUSED" dig.out.test$n > /dev/null || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/fetchlimit/tests.sh b/bin/tests/system/fetchlimit/tests.sh index bf3c63c44b..fa8f5dc9fb 100644 --- a/bin/tests/system/fetchlimit/tests.sh +++ b/bin/tests/system/fetchlimit/tests.sh @@ -183,4 +183,4 @@ if [ $ret != 0 ]; then echo "I: failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/filter-aaaa/tests.sh b/bin/tests/system/filter-aaaa/tests.sh index c1c866fd9f..b229fff35c 100644 --- a/bin/tests/system/filter-aaaa/tests.sh +++ b/bin/tests/system/filter-aaaa/tests.sh @@ -1381,4 +1381,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/formerr/tests.sh b/bin/tests/system/formerr/tests.sh index 27f209f240..47774759ef 100644 --- a/bin/tests/system/formerr/tests.sh +++ b/bin/tests/system/formerr/tests.sh @@ -46,4 +46,4 @@ fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/forward/tests.sh b/bin/tests/system/forward/tests.sh index 37878da79e..bec8a1f983 100644 --- a/bin/tests/system/forward/tests.sh +++ b/bin/tests/system/forward/tests.sh @@ -138,4 +138,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/geoip/tests.sh b/bin/tests/system/geoip/tests.sh index ffe4284a14..629c39dce8 100644 --- a/bin/tests/system/geoip/tests.sh +++ b/bin/tests/system/geoip/tests.sh @@ -485,4 +485,4 @@ $CHECKCONF options.conf || ret=1 status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/glue/tests.sh b/bin/tests/system/glue/tests.sh index e9d465fdb6..1b4ec6ffe7 100644 --- a/bin/tests/system/glue/tests.sh +++ b/bin/tests/system/glue/tests.sh @@ -43,4 +43,4 @@ $DIG +norec @10.53.0.1 -p 5300 example.net. a > dig.out || status=1 $PERL ../digcomp.pl noglue.good dig.out || status=1 echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/gost/tests.sh b/bin/tests/system/gost/tests.sh index 80093ca050..a554752eda 100644 --- a/bin/tests/system/gost/tests.sh +++ b/bin/tests/system/gost/tests.sh @@ -39,4 +39,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/inline/tests.sh b/bin/tests/system/inline/tests.sh index b277f06f41..c08cc4e5d1 100755 --- a/bin/tests/system/inline/tests.sh +++ b/bin/tests/system/inline/tests.sh @@ -979,4 +979,5 @@ serial=`awk '$4 == "SOA" { print $7 }' dig.out.ns2.post.test$n` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/ixfr/tests.sh b/bin/tests/system/ixfr/tests.sh index 4ba85a90fb..d4cc78935e 100644 --- a/bin/tests/system/ixfr/tests.sh +++ b/bin/tests/system/ixfr/tests.sh @@ -266,4 +266,4 @@ if [ ${ret} != 0 ]; then fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/keymgr/tests.sh b/bin/tests/system/keymgr/tests.sh index 52ff16027c..a34bb46e20 100644 --- a/bin/tests/system/keymgr/tests.sh +++ b/bin/tests/system/keymgr/tests.sh @@ -103,4 +103,4 @@ status=`expr $status + $ret` n=`expr $n + 1` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/legacy/tests.sh b/bin/tests/system/legacy/tests.sh index b9e2ccdb92..fab543f2f0 100755 --- a/bin/tests/system/legacy/tests.sh +++ b/bin/tests/system/legacy/tests.sh @@ -169,4 +169,4 @@ fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/limits/tests.sh b/bin/tests/system/limits/tests.sh index d5296ecf2d..f521c584cc 100644 --- a/bin/tests/system/limits/tests.sh +++ b/bin/tests/system/limits/tests.sh @@ -57,4 +57,4 @@ grep 'flags: .*tc.*;' dig.out.exceed > /dev/null || { } echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/logfileconfig/tests.sh b/bin/tests/system/logfileconfig/tests.sh index 7ed1627031..d2c4369368 100644 --- a/bin/tests/system/logfileconfig/tests.sh +++ b/bin/tests/system/logfileconfig/tests.sh @@ -268,4 +268,4 @@ else fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/lwresd/tests.sh b/bin/tests/system/lwresd/tests.sh index af59c9027b..1ce6612e9e 100644 --- a/bin/tests/system/lwresd/tests.sh +++ b/bin/tests/system/lwresd/tests.sh @@ -71,4 +71,4 @@ fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/masterfile/tests.sh b/bin/tests/system/masterfile/tests.sh index d7f393423b..3f221b692c 100644 --- a/bin/tests/system/masterfile/tests.sh +++ b/bin/tests/system/masterfile/tests.sh @@ -63,4 +63,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/masterformat/tests.sh b/bin/tests/system/masterformat/tests.sh index cb9cbbef10..00eaf2f19e 100755 --- a/bin/tests/system/masterformat/tests.sh +++ b/bin/tests/system/masterformat/tests.sh @@ -290,4 +290,4 @@ grep 'next resign' rndc.out > /dev/null 2>&1 || ret=1 status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/metadata/tests.sh b/bin/tests/system/metadata/tests.sh index 28d5ac5740..4e5ce61d7a 100644 --- a/bin/tests/system/metadata/tests.sh +++ b/bin/tests/system/metadata/tests.sh @@ -192,4 +192,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/mkeys/tests.sh b/bin/tests/system/mkeys/tests.sh index 20c53d9e98..92d63d07a7 100644 --- a/bin/tests/system/mkeys/tests.sh +++ b/bin/tests/system/mkeys/tests.sh @@ -543,4 +543,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/names/tests.sh b/bin/tests/system/names/tests.sh index 9fe49ece25..e5fe98d4d9 100644 --- a/bin/tests/system/names/tests.sh +++ b/bin/tests/system/names/tests.sh @@ -48,4 +48,4 @@ if [ $val -le 1 ]; then fi; echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/notify/tests.sh b/bin/tests/system/notify/tests.sh index c98ef261ad..6893fc0f6f 100644 --- a/bin/tests/system/notify/tests.sh +++ b/bin/tests/system/notify/tests.sh @@ -213,4 +213,4 @@ grep "test string" dig.out.c.ns5.test$n > /dev/null || ret=1 status=`expr $ret + $status` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/nslookup/tests.sh b/bin/tests/system/nslookup/tests.sh index d77afd9fec..426053f6e6 100644 --- a/bin/tests/system/nslookup/tests.sh +++ b/bin/tests/system/nslookup/tests.sh @@ -32,5 +32,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status - +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/nsupdate/tests.sh b/bin/tests/system/nsupdate/tests.sh index 2a088dae08..502531b8b6 100755 --- a/bin/tests/system/nsupdate/tests.sh +++ b/bin/tests/system/nsupdate/tests.sh @@ -657,4 +657,4 @@ grep "bad name" nsupdate.out4-$n > /dev/null && ret=1 [ $ret = 0 ] || { echo I:failed; status=1; } echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/pending/tests.sh b/bin/tests/system/pending/tests.sh index 3b70f83351..9962bc10c6 100644 --- a/bin/tests/system/pending/tests.sh +++ b/bin/tests/system/pending/tests.sh @@ -201,4 +201,4 @@ test $ret = 0 || echo I:failed, got "'""$ans""'", expected "'""$expect""'" status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/pipelined/tests.sh b/bin/tests/system/pipelined/tests.sh index d3cbfa6d9f..6af9a87daa 100644 --- a/bin/tests/system/pipelined/tests.sh +++ b/bin/tests/system/pipelined/tests.sh @@ -60,4 +60,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/pkcs11/tests.sh b/bin/tests/system/pkcs11/tests.sh index 047c79b8b4..8eb72e1bfb 100644 --- a/bin/tests/system/pkcs11/tests.sh +++ b/bin/tests/system/pkcs11/tests.sh @@ -79,4 +79,4 @@ END done echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/pkcs11ssl/tests.sh b/bin/tests/system/pkcs11ssl/tests.sh index c22dc4fe1a..9c45f09249 100644 --- a/bin/tests/system/pkcs11ssl/tests.sh +++ b/bin/tests/system/pkcs11ssl/tests.sh @@ -66,4 +66,4 @@ if [ $count != 0 ]; then echo "I:failed"; fi status=`expr $status + $count` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/reclimit/tests.sh b/bin/tests/system/reclimit/tests.sh index a9f7776cb6..ada810367a 100644 --- a/bin/tests/system/reclimit/tests.sh +++ b/bin/tests/system/reclimit/tests.sh @@ -190,4 +190,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/redirect/tests.sh b/bin/tests/system/redirect/tests.sh index 38c47f95d3..569d0cc8f6 100644 --- a/bin/tests/system/redirect/tests.sh +++ b/bin/tests/system/redirect/tests.sh @@ -525,4 +525,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/resolver/tests.sh b/bin/tests/system/resolver/tests.sh index 8c1fcdebcf..f48308efe2 100755 --- a/bin/tests/system/resolver/tests.sh +++ b/bin/tests/system/resolver/tests.sh @@ -688,5 +688,6 @@ ttl=`awk '/"A" "zero" "ttl"/ { print $2 }' dig.out.1.${n}` test ${ttl:-1} -eq 0 || ret=1 if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` + echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rndc/tests.sh b/bin/tests/system/rndc/tests.sh index e71780f81d..232dde7d59 100644 --- a/bin/tests/system/rndc/tests.sh +++ b/bin/tests/system/rndc/tests.sh @@ -557,4 +557,5 @@ EOF status=`expr $status + $ret` fi -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rpz/tests.sh b/bin/tests/system/rpz/tests.sh index fe22153d2e..597b2c8904 100644 --- a/bin/tests/system/rpz/tests.sh +++ b/bin/tests/system/rpz/tests.sh @@ -647,4 +647,4 @@ $DIG -p 5300 @$ns3 ns example.com > dig.out.delegation grep "status: SERVFAIL" dig.out.delegation > /dev/null || setret "I:failed" echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rpzrecurse/tests.sh b/bin/tests/system/rpzrecurse/tests.sh index ca4841c4ec..ee0f08fe96 100644 --- a/bin/tests/system/rpzrecurse/tests.sh +++ b/bin/tests/system/rpzrecurse/tests.sh @@ -335,5 +335,5 @@ if test $p1 -le $p2; then ret=1; fi if test $ret != 0; then echo "I:failed"; fi status=`expr $status + $ret` - -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rrchecker/tests.sh b/bin/tests/system/rrchecker/tests.sh index fd79c7e2f3..3ed7dc4ab6 100644 --- a/bin/tests/system/rrchecker/tests.sh +++ b/bin/tests/system/rrchecker/tests.sh @@ -79,4 +79,4 @@ done test $ret -eq 0 || { echo "I:failed"; status=`expr $status + 1`; } echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rrl/tests.sh b/bin/tests/system/rrl/tests.sh index 73f1b82847..8a246c9b5c 100644 --- a/bin/tests/system/rrl/tests.sh +++ b/bin/tests/system/rrl/tests.sh @@ -284,6 +284,6 @@ if [ -f named.pid ]; then fi echo "I:exit status: $ret" -exit $ret +[ $ret -eq 0 ] || exit 1 #[ $ret -ne 0 ] && echo "I:test failure overridden" -#exit 0 +#[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rrsetorder/tests.sh b/bin/tests/system/rrsetorder/tests.sh index 0ca76dd724..78db934291 100644 --- a/bin/tests/system/rrsetorder/tests.sh +++ b/bin/tests/system/rrsetorder/tests.sh @@ -475,4 +475,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/rsabigexponent/tests.sh b/bin/tests/system/rsabigexponent/tests.sh index ef7d18c789..9bd02c59d1 100644 --- a/bin/tests/system/rsabigexponent/tests.sh +++ b/bin/tests/system/rsabigexponent/tests.sh @@ -59,4 +59,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/runtime/tests.sh b/bin/tests/system/runtime/tests.sh index 7672b835ab..9d17f2b2bb 100644 --- a/bin/tests/system/runtime/tests.sh +++ b/bin/tests/system/runtime/tests.sh @@ -58,4 +58,5 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/sfcache/tests.sh b/bin/tests/system/sfcache/tests.sh index 2692585fcc..033c52562a 100644 --- a/bin/tests/system/sfcache/tests.sh +++ b/bin/tests/system/sfcache/tests.sh @@ -97,4 +97,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/smartsign/tests.sh b/bin/tests/system/smartsign/tests.sh index 041bb411bf..0dcf32eb0d 100644 --- a/bin/tests/system/smartsign/tests.sh +++ b/bin/tests/system/smartsign/tests.sh @@ -343,4 +343,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/sortlist/tests.sh b/bin/tests/system/sortlist/tests.sh index c878dcafc7..668042f749 100644 --- a/bin/tests/system/sortlist/tests.sh +++ b/bin/tests/system/sortlist/tests.sh @@ -57,4 +57,4 @@ $DIG +tcp +noadd +nosea +nostat +noquest +noauth +nocomm +nocmd \ egrep '10.53.0.5$' >> test2.out || status=1 echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/spf/tests.sh b/bin/tests/system/spf/tests.sh index ba8ddd4239..ba71a7d95b 100644 --- a/bin/tests/system/spf/tests.sh +++ b/bin/tests/system/spf/tests.sh @@ -39,4 +39,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/staticstub/tests.sh b/bin/tests/system/staticstub/tests.sh index edb2aa5f48..d2595f2deb 100755 --- a/bin/tests/system/staticstub/tests.sh +++ b/bin/tests/system/staticstub/tests.sh @@ -214,4 +214,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/statistics/tests.sh b/bin/tests/system/statistics/tests.sh index 49524fa9f6..6e4c772da6 100644 --- a/bin/tests/system/statistics/tests.sh +++ b/bin/tests/system/statistics/tests.sh @@ -143,4 +143,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/statschannel/tests.sh b/bin/tests/system/statschannel/tests.sh index df4e25aff0..f4933f9a25 100644 --- a/bin/tests/system/statschannel/tests.sh +++ b/bin/tests/system/statschannel/tests.sh @@ -210,4 +210,4 @@ status=`expr $status + $ret` n=`expr $n + 1` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/stress/tests.sh b/bin/tests/system/stress/tests.sh index 3e61ff9300..343154ff40 100644 --- a/bin/tests/system/stress/tests.sh +++ b/bin/tests/system/stress/tests.sh @@ -40,4 +40,4 @@ echo "I:killing reload loop" kill `cat reload.pid` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/stub/tests.sh b/bin/tests/system/stub/tests.sh index 071a5e8b65..c689fc0ccc 100644 --- a/bin/tests/system/stub/tests.sh +++ b/bin/tests/system/stub/tests.sh @@ -67,4 +67,4 @@ $PERL ../digcomp.pl knowngood.dig.out.rec dig.out.ns3 || ret=1 done echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/tcp/tests.sh b/bin/tests/system/tcp/tests.sh index 91f0b61f2c..7aac35dfb3 100644 --- a/bin/tests/system/tcp/tests.sh +++ b/bin/tests/system/tcp/tests.sh @@ -58,4 +58,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/tkey/tests.sh b/bin/tests/system/tkey/tests.sh index 94af6f2b08..3884a5bf43 100644 --- a/bin/tests/system/tkey/tests.sh +++ b/bin/tests/system/tkey/tests.sh @@ -150,4 +150,4 @@ fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/tsig/tests.sh b/bin/tests/system/tsig/tests.sh index 156416f9be..9055ae19c7 100644 --- a/bin/tests/system/tsig/tests.sh +++ b/bin/tests/system/tsig/tests.sh @@ -244,4 +244,5 @@ if [ $ret -eq 1 ] ; then echo "I: failed"; status=1 fi -exit $status +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/tsiggss/tests.sh b/bin/tests/system/tsiggss/tests.sh index 578d17bbac..fd94eb9b47 100644 --- a/bin/tests/system/tsiggss/tests.sh +++ b/bin/tests/system/tsiggss/tests.sh @@ -92,4 +92,6 @@ status=`expr $status + $ret` [ $status -eq 0 ] && echo "I:tsiggss tests all OK" kill `cat authsock.pid` -exit $status + +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/unknown/tests.sh b/bin/tests/system/unknown/tests.sh index 55c7ca6db5..4cf669d0ce 100644 --- a/bin/tests/system/unknown/tests.sh +++ b/bin/tests/system/unknown/tests.sh @@ -196,4 +196,4 @@ status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/upforwd/tests.sh b/bin/tests/system/upforwd/tests.sh index 3d283570f2..f0d0ef03b8 100644 --- a/bin/tests/system/upforwd/tests.sh +++ b/bin/tests/system/upforwd/tests.sh @@ -202,4 +202,4 @@ EOF fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/v6synth/tests.sh b/bin/tests/system/v6synth/tests.sh index c5731e197c..40fe54e5eb 100644 --- a/bin/tests/system/v6synth/tests.sh +++ b/bin/tests/system/v6synth/tests.sh @@ -68,4 +68,4 @@ EOF diff good.out dig.out || status=1 echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/verify/tests.sh b/bin/tests/system/verify/tests.sh index 66b705c056..1581e2f639 100644 --- a/bin/tests/system/verify/tests.sh +++ b/bin/tests/system/verify/tests.sh @@ -93,4 +93,6 @@ do [ $ret = 0 ] || failed [ $dumpit = 1 ] && cat verify.out.$n done -exit $status + +echo "I:exit status: $status" +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/views/tests.sh b/bin/tests/system/views/tests.sh index b90d7f5edf..fcdbd09278 100644 --- a/bin/tests/system/views/tests.sh +++ b/bin/tests/system/views/tests.sh @@ -139,4 +139,4 @@ then fi echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/wildcard/tests.sh b/bin/tests/system/wildcard/tests.sh index ac55b84384..c2e71f9403 100644 --- a/bin/tests/system/wildcard/tests.sh +++ b/bin/tests/system/wildcard/tests.sh @@ -151,4 +151,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/xfer/tests.sh b/bin/tests/system/xfer/tests.sh index 7928d7d9ba..a0bcabdb53 100644 --- a/bin/tests/system/xfer/tests.sh +++ b/bin/tests/system/xfer/tests.sh @@ -422,4 +422,4 @@ if test $tmp != 0 ; then echo "I:failed"; fi status=`expr $status + $tmp` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/xferquota/tests.sh b/bin/tests/system/xferquota/tests.sh index b5e03368f9..ffb90b9702 100644 --- a/bin/tests/system/xferquota/tests.sh +++ b/bin/tests/system/xferquota/tests.sh @@ -68,4 +68,4 @@ grep ";" dig.out.ns2 $PERL ../digcomp.pl dig.out.ns1 dig.out.ns2 || status=1 echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/zero/tests.sh b/bin/tests/system/zero/tests.sh index 7dd3d78cb2..b11f7de853 100644 --- a/bin/tests/system/zero/tests.sh +++ b/bin/tests/system/zero/tests.sh @@ -58,4 +58,4 @@ if [ $count -ne 7 ] ; then echo "I:failed (count=$count)"; ret=1; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1 diff --git a/bin/tests/system/zonechecks/tests.sh b/bin/tests/system/zonechecks/tests.sh index 9ec7c741ca..7b4c4cecf9 100644 --- a/bin/tests/system/zonechecks/tests.sh +++ b/bin/tests/system/zonechecks/tests.sh @@ -254,4 +254,4 @@ if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` echo "I:exit status: $status" -exit $status +[ $status -eq 0 ] || exit 1