]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3014. [bug] Fix the zonechecks system test to match expected
authorMark Andrews <marka@isc.org>
Thu, 3 Feb 2011 07:56:33 +0000 (07:56 +0000)
committerMark Andrews <marka@isc.org>
Thu, 3 Feb 2011 07:56:33 +0000 (07:56 +0000)
                        behaviour for 9.4 and to fail on error. [RT #22905]

CHANGES
bin/tests/system/zonechecks/tests.sh

diff --git a/CHANGES b/CHANGES
index fc5972a00e2c0b82fc2c479c3bfff75b137a6695..5bc42bac6fc815f9dc46285eef223884934c3240 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,6 @@
+3014.  [bug]           Fix the zonechecks system test to match expected
+                       behaviour for 9.4 and to fail on error. [RT #22905]
+
 3009.  [bug]           clients-per-query code didn't work as expected with
                        particular query patterns. [RT #22972]
 
index 1c99890348d788a3cff40c4323f0c99059677cc3..d4be0b518f21f579cb370483add42ba20894477c 100644 (file)
 # OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 # PERFORMANCE OF THIS SOFTWARE.
 
-# $Id: tests.sh,v 1.2 2004/11/23 05:23:46 marka Exp $
+# $Id: tests.sh,v 1.2.2.2 2011/02/03 07:56:33 marka Exp $
 
 SYSTEMTESTTOP=..
 . $SYSTEMTESTTOP/conf.sh
 
 status=0
 
-#
+# This is a Warning in 9.6 and Fatal in 9.7
 echo "I: checking that we detect a NS which refers to a CNAME"
 if $CHECKZONE . cname.db > cname.out 2>&1
 then
-       echo "I:failed (status)"; status=1
-else
        if grep "is a CNAME" cname.out > /dev/null
        then
                :
        else
                echo "I:failed (message)"; status=1
        fi
+else
+       echo "I:failed (status)"; status=1
 fi
 
-#
+# This is a Warning in 9.6 and Fatal in 9.7
 echo "I: checking that we detect a NS which is below a DNAME"
 if $CHECKZONE . dname.db > dname.out 2>&1
 then
-       echo "I:failed (status)"; status=1
-else
        if grep "is below a DNAME" dname.out > /dev/null
        then
                :
        else
                echo "I:failed (message)"; status=1
        fi
+else
+       echo "I:failed (status)"; status=1
 fi
 
-#
+# This is a Warning in 9.6 and Fatal in 9.7
 echo "I: checking that we detect a NS which has no address records (A/AAAA)"
 if $CHECKZONE . noaddress.db > noaddress.out
 then
-       echo "I:failed (status)"; status=1
-else
        if grep "has no address records" noaddress.out > /dev/null
        then
                :
        else
                echo "I:failed (message)"; status=1
        fi
+else
+       echo "I:failed (status)"; status=1
 fi
 
-#
+# This is a Warning in 9.6 and Fatal in 9.7
 echo "I: checking that we detect a NS which has no records"
 if $CHECKZONE . nxdomain.db > nxdomain.out
 then
-       echo "I:failed (status)"; status=1
-else
        if grep "has no address records" noaddress.out > /dev/null
        then
                :
        else
                echo "I:failed (message)"; status=1
        fi
+else
+       echo "I:failed (status)"; status=1
 fi
 
 #
@@ -161,4 +161,4 @@ else
        echo "I:failed (status)"; status=1
 fi
 echo "I:exit status: $status"
-exit $?
+exit $status