]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
loop 'I:checking expired signatures were updated' test
authorMark Andrews <marka@isc.org>
Sun, 2 Dec 2012 22:30:38 +0000 (09:30 +1100)
committerMark Andrews <marka@isc.org>
Sun, 2 Dec 2012 22:30:38 +0000 (09:30 +1100)
bin/tests/system/autosign/clean.sh
bin/tests/system/autosign/tests.sh

index de7ca279a48c2e9c667e298d949149f8e2692328..7355788a0876bda8f3e18aea101965d1e7d36444 100644 (file)
@@ -53,3 +53,4 @@ rm -f ns3/reconf.example.db
 rm -f ns3/ttl*.db
 rm -f signing.out.*
 rm -f ns3/*.nzf
+rm -f digcomp.out.test*
index 4edd5d90c59fb4cc5a14a8c55999aa899914474a..cc2a78d551b206cabf08cfe82997413df27ccc3c 100644 (file)
@@ -245,13 +245,18 @@ $RNDC -c ../common/rndc.conf -s 10.53.0.2 -p 9953 sync 2>&1 | sed 's/^/I:ns2 /'
 $RNDC -c ../common/rndc.conf -s 10.53.0.3 -p 9953 sync 2>&1 | sed 's/^/I:ns3 /'
 
 echo "I:checking expired signatures were updated ($n)"
-ret=0
-$DIG $DIGOPTS +noauth a.oldsigs.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
-$DIG $DIGOPTS +noauth a.oldsigs.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
-$PERL ../digcomp.pl dig.out.ns3.test$n dig.out.ns4.test$n || ret=1
-grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
+for i in 1 2 3 4 5 6 7 8 9
+do
+       ret=0
+       $DIG $DIGOPTS +noauth a.oldsigs.example. @10.53.0.3 a > dig.out.ns3.test$n || ret=1
+       $DIG $DIGOPTS +noauth a.oldsigs.example. @10.53.0.4 a > dig.out.ns4.test$n || ret=1
+       $PERL ../digcomp.pl dig.out.ns3.test$n dig.out.ns4.test$n > digcomp.out.test$n || ret=1
+       grep "flags:.*ad.*QUERY" dig.out.ns4.test$n > /dev/null || ret=1
+       [ $ret = 0 ] && break
+       sleep 1
+done
+if [ $ret != 0 ]; then cat digcomp.out.test$n; echo "I:failed"; fi
 n=`expr $n + 1`
-if [ $ret != 0 ]; then echo "I:failed"; fi
 status=`expr $status + $ret`
 
 echo "I:checking NSEC->NSEC3 conversion succeeded ($n)"