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

--enable-fixed-rrset uses reversed order for cyclic

This commit is contained in:
Mark Andrews
2011-12-23 01:06:42 +00:00
parent 6643b0dd91
commit 7caaa75cbf
5 changed files with 54 additions and 6 deletions

View File

@@ -0,0 +1,4 @@
1.2.3.4
1.2.3.3
1.2.3.2
1.2.3.1

View File

@@ -0,0 +1,4 @@
1.2.3.3
1.2.3.2
1.2.3.1
1.2.3.4

View File

@@ -0,0 +1,4 @@
1.2.3.2
1.2.3.1
1.2.3.4
1.2.3.3

View File

@@ -0,0 +1,4 @@
1.2.3.1
1.2.3.4
1.2.3.3
1.2.3.2

View File

@@ -14,7 +14,7 @@
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
# PERFORMANCE OF THIS SOFTWARE.
# $Id: tests.sh,v 1.9 2011/12/23 00:38:23 marka Exp $
# $Id: tests.sh,v 1.10 2011/12/23 01:06:42 marka Exp $
SYSTEMTESTTOP=..
. $SYSTEMTESTTOP/conf.sh
@@ -66,10 +66,18 @@ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
match=0
for j in 1 2 3 4
do
eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
if $test_fixed; then
cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
eval "match$j=1 match=1";
}
else
cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
eval "match$j=1 match=1";
}
fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; cat dig.out.cyclic; fi
done
match=0
for i in 1 2 3 4
@@ -146,7 +154,15 @@ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
match=0
for j in 1 2 3 4
do
eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
if $test_fixed; then
cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
eval "match$j=1 match=1";
}
else
cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
eval "match$j=1 match=1";
}
fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
@@ -246,7 +262,15 @@ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
match=0
for j in 1 2 3 4
do
eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
if $test_fixed; then
cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
eval "match$j=1 match=1";
}
else
cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
eval "match$j=1 match=1";
}
fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
@@ -326,7 +350,15 @@ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
match=0
for j in 1 2 3 4
do
eval "cmp -s dig.out.cyclic dig.out.cyclic.good$j && match$j=1 match=1"
if $test_fixed; then
cmp -s dig.out.cyclic dig.out.cyclic.fixed$j && {
eval "match$j=1 match=1";
}
else
cmp -s dig.out.cyclic dig.out.cyclic.good$j && {
eval "match$j=1 match=1";
}
fi
if [ $match -eq 1 ]; then break; fi
done
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi