2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

initialise matches

This commit is contained in:
Mark Andrews
2014-06-02 13:53:37 +10:00
parent 5360986092
commit ab6fd5e892

View File

@@ -43,13 +43,14 @@ if $test_fixed; then
else else
echo "I: Checking order fixed behaves as cyclic when disabled (master)" echo "I: Checking order fixed behaves as cyclic when disabled (master)"
ret=0 ret=0
matches=0
for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 for i in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
do do
j=`expr $i % 4` j=`expr $i % 4`
$DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
-p 5300 @10.53.0.1 fixed.example > dig.out.fixed || ret=1 -p 5300 @10.53.0.1 fixed.example > dig.out.fixed || ret=1
if [ $i -le 4 ]; then if [ $i -le 4 ]; then
cp dig.out.fixed dig.out.$j cp dig.out.fixed dig.out.$j
else else
cmp -s dig.out.fixed dig.out.$j && matches=`expr $matches + 1` cmp -s dig.out.fixed dig.out.$j && matches=`expr $matches + 1`
fi fi