From: Evan Hunt Date: Fri, 23 Feb 2018 08:00:09 +0000 (-0800) Subject: improve reliability of xfer test X-Git-Tag: v9.13.0~142^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d7d6881a18de57f2c151ef4c58fb3a4fdc2597a;p=thirdparty%2Fbind9.git improve reliability of xfer test --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8bfe3dcec30..f779f42ec4d 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -96,7 +96,7 @@ stages: before_script: - bash -x bin/tests/system/ifconfig.sh up script: - - make -j5 -k check V=1 + - make -j6 -k check V=1 artifacts: untracked: true expire_in: '1 week' diff --git a/bin/tests/system/synthfromdnssec/ns2/named.conf.in b/bin/tests/system/synthfromdnssec/ns2/named.conf.in index 601603e3fa3..351b40eafd8 100644 --- a/bin/tests/system/synthfromdnssec/ns2/named.conf.in +++ b/bin/tests/system/synthfromdnssec/ns2/named.conf.in @@ -31,4 +31,3 @@ zone "." { }; include "../ns1/trusted.conf"; -include "../../common/controls.conf"; diff --git a/bin/tests/system/xfer/tests.sh b/bin/tests/system/xfer/tests.sh index e96598716a1..3f9a0b7fd03 100755 --- a/bin/tests/system/xfer/tests.sh +++ b/bin/tests/system/xfer/tests.sh @@ -119,7 +119,22 @@ status=`expr $status + $tmp` n=`expr $n + 1` echo_i "testing ixfr-from-differences yes;" tmp=0 -for i in 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 + +for i in 0 1 2 3 4 5 6 7 8 9 +do + a=0 b=0 c=0 d=0 + echo_i "wait for reloads..." + $DIG $DIGOPTS @10.53.0.6 +noall +answer soa master > dig.out.soa1.ns6 + grep "1397051953" dig.out.soa1.ns6 > /dev/null && a=1 + $DIG $DIGOPTS @10.53.0.1 +noall +answer soa slave > dig.out.soa2.ns1 + grep "1397051953" dig.out.soa2.ns1 > /dev/null && b=1 + $DIG $DIGOPTS @10.53.0.2 +noall +answer soa example > dig.out.soa3.ns2 + grep "1397051953" dig.out.soa3.ns2 > /dev/null && c=1 + [ $a -eq 1 -a $b -eq 1 -a $c -eq 1 ] && break + sleep 2 +done + +for i in 0 1 2 3 4 5 6 7 8 9 do a=0 b=0 c=0 d=0 echo_i "wait for transfers..." @@ -127,9 +142,14 @@ do grep "1397051953" dig.out.soa1.ns3 > /dev/null && a=1 $DIG $DIGOPTS @10.53.0.3 +noall +answer soa master > dig.out.soa2.ns3 grep "1397051953" dig.out.soa2.ns3 > /dev/null && b=1 - $DIG $DIGOPTS @10.53.0.6 +noall +answer soa slave > dig.out.soa3.ns3 - grep "1397051953" dig.out.soa3.ns3 > /dev/null && c=1 + $DIG $DIGOPTS @10.53.0.6 +noall +answer soa slave > dig.out.soa3.ns6 + grep "1397051953" dig.out.soa3.ns6 > /dev/null && c=1 [ $a -eq 1 -a $b -eq 1 -a $c -eq 1 ] && break + + # re-notify if necessary + $RNDCCMD 10.53.0.6 notify master 2>&1 | sed 's/^/ns6 /' | cat_i + $RNDCCMD 10.53.0.1 notify slave 2>&1 | sed 's/^/ns1 /' | cat_i + $RNDCCMD 10.53.0.2 notify example 2>&1 | sed 's/^/ns2 /' | cat_i sleep 2 done