From: Mark Andrews Date: Fri, 14 Oct 2011 12:02:12 +0000 (+0000) Subject: wait for test zones to have loaded X-Git-Tag: v9.9.0b1~2^3~52 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=baabfdc0d96bb6cb9ebe27f1afce072450cdb95e;p=thirdparty%2Fbind9.git wait for test zones to have loaded --- diff --git a/bin/tests/system/notify/tests.sh b/bin/tests/system/notify/tests.sh index 0f142401b57..0c5335b1ce0 100644 --- a/bin/tests/system/notify/tests.sh +++ b/bin/tests/system/notify/tests.sh @@ -15,13 +15,24 @@ # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR # PERFORMANCE OF THIS SOFTWARE. -# $Id: tests.sh,v 1.33 2007/06/19 23:47:04 tbox Exp $ +# $Id: tests.sh,v 1.34 2011/10/14 12:02:12 marka Exp $ SYSTEMTESTTOP=.. . $SYSTEMTESTTOP/conf.sh status=0 +for i in 1 2 3 4 5 6 7 8 9 10 +do + ret=0 + $DIG +tcp example @10.53.0.2 soa -p 5300 > dig.out.ns2 || ret=1 + grep "status: NOERROR" dig.out.ns2 > /dev/null || ret=1 + $DIG +tcp example @10.53.0.3 soa -p 5300 > dig.out.ns3 || ret=1 + grep "status: NOERROR" dig.out.ns3 > /dev/null || ret=1 + [ $ret = 0 ] && break + sleep 1 +done + $DIG +tcp +noadd +nosea +nostat +noquest +nocomm +nocmd a.example.\ @10.53.0.2 a -p 5300 > dig.out.ns2 || status=1 grep ";" dig.out.ns2