]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
wait for test zones to have loaded
authorMark Andrews <marka@isc.org>
Fri, 14 Oct 2011 12:02:12 +0000 (12:02 +0000)
committerMark Andrews <marka@isc.org>
Fri, 14 Oct 2011 12:02:12 +0000 (12:02 +0000)
bin/tests/system/notify/tests.sh

index 0f142401b576978d34f9dc64804ccdb5b3e6a699..0c5335b1ce0288754afba9b5e86db5831fd125ff 100644 (file)
 # 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