]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
spin waiting for zone transfer to complete
authorMark Andrews <marka@isc.org>
Wed, 26 Oct 2011 05:35:19 +0000 (05:35 +0000)
committerMark Andrews <marka@isc.org>
Wed, 26 Oct 2011 05:35:19 +0000 (05:35 +0000)
bin/tests/system/dnssec/tests.sh

index e6b864123b84c2f6dc35c7e42a0354ef44832f85..9dfc67199e9fba668d9330f422754afea02d2975 100644 (file)
@@ -15,7 +15,7 @@
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.53.48.22 2011/10/20 21:47:47 marka Exp $
+# $Id: tests.sh,v 1.53.48.23 2011/10/26 05:35:19 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -30,10 +30,16 @@ DIGOPTS="+tcp +noadd +nosea +nostat +nocmd +dnssec -p 5300"
 # Check the example. domain
 
 echo "I:checking that zone transfer worked ($n)"
-ret=0
-$DIG $DIGOPTS a.example. @10.53.0.2 a > dig.out.ns2.test$n || ret=1
-$DIG $DIGOPTS a.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
-$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n || ret=1
+for i in 1 2 3 4 5 6 7 8 9
+do
+       ret=0
+       $DIG $DIGOPTS a.example. @10.53.0.2 a > dig.out.ns2.test$n || ret=1
+       $DIG $DIGOPTS a.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
+       $PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n > /dev/null || ret=1
+       [ $ret = 0 ] && break
+       sleep 1
+done
+$PERL ../digcomp.pl dig.out.ns2.test$n dig.out.ns3.test$n > /dev/null || ret=1
 n=`expr $n + 1`
 if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`