]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
--enable-fixed-rrset uses reversed order for cyclic
authorMark Andrews <marka@isc.org>
Fri, 23 Dec 2011 01:08:14 +0000 (01:08 +0000)
committerMark Andrews <marka@isc.org>
Fri, 23 Dec 2011 01:08:14 +0000 (01:08 +0000)
bin/tests/system/rrsetorder/dig.out.cyclic.fixed1 [new file with mode: 0644]
bin/tests/system/rrsetorder/dig.out.cyclic.fixed2 [new file with mode: 0644]
bin/tests/system/rrsetorder/dig.out.cyclic.fixed3 [new file with mode: 0644]
bin/tests/system/rrsetorder/dig.out.cyclic.fixed4 [new file with mode: 0644]
bin/tests/system/rrsetorder/tests.sh

diff --git a/bin/tests/system/rrsetorder/dig.out.cyclic.fixed1 b/bin/tests/system/rrsetorder/dig.out.cyclic.fixed1
new file mode 100644 (file)
index 0000000..c25c756
--- /dev/null
@@ -0,0 +1,4 @@
+1.2.3.4
+1.2.3.3
+1.2.3.2
+1.2.3.1
diff --git a/bin/tests/system/rrsetorder/dig.out.cyclic.fixed2 b/bin/tests/system/rrsetorder/dig.out.cyclic.fixed2
new file mode 100644 (file)
index 0000000..e8deb67
--- /dev/null
@@ -0,0 +1,4 @@
+1.2.3.3
+1.2.3.2
+1.2.3.1
+1.2.3.4
diff --git a/bin/tests/system/rrsetorder/dig.out.cyclic.fixed3 b/bin/tests/system/rrsetorder/dig.out.cyclic.fixed3
new file mode 100644 (file)
index 0000000..3b27693
--- /dev/null
@@ -0,0 +1,4 @@
+1.2.3.2
+1.2.3.1
+1.2.3.4
+1.2.3.3
diff --git a/bin/tests/system/rrsetorder/dig.out.cyclic.fixed4 b/bin/tests/system/rrsetorder/dig.out.cyclic.fixed4
new file mode 100644 (file)
index 0000000..d2ca6fc
--- /dev/null
@@ -0,0 +1,4 @@
+1.2.3.1
+1.2.3.4
+1.2.3.3
+1.2.3.2
index c5448cabbcf3b87a13a7e08168fc30ba5b082891..400e4e37e5b89375a69c353fffeb9032164a45ee 100644 (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.8.44.1 2011/12/23 00:42:40 marka Exp $
+# $Id: tests.sh,v 1.8.44.2 2011/12/23 01:08:14 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