From 5ca903ae3d9ba60884599bd1f57b7cb2d202ccda Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Tue, 24 Oct 2017 14:46:27 +1100 Subject: [PATCH] remove redundent reconfig; number tests --- bin/tests/system/additional/tests.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/tests/system/additional/tests.sh b/bin/tests/system/additional/tests.sh index f6188ef130..2e51e3b439 100644 --- a/bin/tests/system/additional/tests.sh +++ b/bin/tests/system/additional/tests.sh @@ -109,7 +109,7 @@ echo "I:testing with 'minimal-responses yes;'" minimal=yes dotests -echo "I:reconfiguring server" +echo "I:reconfiguring server: minimal-responses no" cp ns1/named2.conf ns1/named.conf $RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 reconfig 2>&1 | sed 's/^/I:ns1 /' sleep 2 @@ -118,13 +118,8 @@ echo "I:testing with 'minimal-responses no;'" minimal=no dotests -echo "I:reconfiguring server: minimal-responses no" -cp ns1/named2.conf ns1/named.conf -$RNDC -c ../common/rndc.conf -s 10.53.0.1 -p 9953 reconfig 2>&1 | sed 's/^/I:ns1 /' -sleep 2 - -echo "I:testing NS handling in ANY responses (authoritative)" n=`expr $n + 1` +echo "I:testing NS handling in ANY responses (authoritative) ($n)" ret=0 $DIG -t ANY rt.example @10.53.0.1 -p 5300 > dig.out.$n || ret=1 grep "AUTHORITY: 0" dig.out.$n > /dev/null || ret=1 @@ -133,8 +128,8 @@ if [ $ret -eq 1 ] ; then echo "I: failed"; status=1 fi -echo "I:testing NS handling in ANY responses (recursive)" n=`expr $n + 1` +echo "I:testing NS handling in ANY responses (recursive) ($n)" ret=0 $DIG -t ANY rt.example @10.53.0.3 -p 5300 > dig.out.$n || ret=1 grep "AUTHORITY: 0" dig.out.$n > /dev/null || ret=1