mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-01 06:55:30 +00:00
--enable-fixed-rrset uses reversed order for cyclic
This commit is contained in:
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed1
Normal file
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed1
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
1.2.3.4
|
||||||
|
1.2.3.3
|
||||||
|
1.2.3.2
|
||||||
|
1.2.3.1
|
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed2
Normal file
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed2
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
1.2.3.3
|
||||||
|
1.2.3.2
|
||||||
|
1.2.3.1
|
||||||
|
1.2.3.4
|
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed3
Normal file
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed3
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
1.2.3.2
|
||||||
|
1.2.3.1
|
||||||
|
1.2.3.4
|
||||||
|
1.2.3.3
|
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed4
Normal file
4
bin/tests/system/rrsetorder/dig.out.cyclic.fixed4
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
1.2.3.1
|
||||||
|
1.2.3.4
|
||||||
|
1.2.3.3
|
||||||
|
1.2.3.2
|
@@ -14,7 +14,7 @@
|
|||||||
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
# OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||||
# PERFORMANCE OF THIS SOFTWARE.
|
# 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=..
|
||||||
. $SYSTEMTESTTOP/conf.sh
|
. $SYSTEMTESTTOP/conf.sh
|
||||||
@@ -66,10 +66,18 @@ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
|
|||||||
match=0
|
match=0
|
||||||
for j in 1 2 3 4
|
for j in 1 2 3 4
|
||||||
do
|
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
|
if [ $match -eq 1 ]; then break; fi
|
||||||
done
|
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
|
done
|
||||||
match=0
|
match=0
|
||||||
for i in 1 2 3 4
|
for i in 1 2 3 4
|
||||||
@@ -146,7 +154,15 @@ $DIG +nosea +nocomm +nocmd +noquest +noadd +noauth +nocomm +nostat +short \
|
|||||||
match=0
|
match=0
|
||||||
for j in 1 2 3 4
|
for j in 1 2 3 4
|
||||||
do
|
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
|
if [ $match -eq 1 ]; then break; fi
|
||||||
done
|
done
|
||||||
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
|
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
|
match=0
|
||||||
for j in 1 2 3 4
|
for j in 1 2 3 4
|
||||||
do
|
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
|
if [ $match -eq 1 ]; then break; fi
|
||||||
done
|
done
|
||||||
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
|
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
|
match=0
|
||||||
for j in 1 2 3 4
|
for j in 1 2 3 4
|
||||||
do
|
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
|
if [ $match -eq 1 ]; then break; fi
|
||||||
done
|
done
|
||||||
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
|
if [ $match -eq 0 ]; then ret=1; echo "I:unexpected order"; fi
|
||||||
|
Reference in New Issue
Block a user