]> 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:32:56 +0000 (05:32 +0000)
committerMark Andrews <marka@isc.org>
Wed, 26 Oct 2011 05:32:56 +0000 (05:32 +0000)
bin/tests/system/dnssec/tests.sh

index 13e1b3cd8aac7504cf54c6f934b19545fad0ce20..8f0d6eca8ff90e7707d33e1593347ace1ea29ade 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.99 2011/10/20 21:42:11 marka Exp $
+# $Id: tests.sh,v 1.100 2011/10/26 05:32:56 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
@@ -60,10 +60,16 @@ checkprivate () {
 # 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`