]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Test bin/tests/system/checkconf/good-*.conf
authorMukund Sivaraman <muks@isc.org>
Tue, 23 Feb 2016 07:29:37 +0000 (12:59 +0530)
committerMukund Sivaraman <muks@isc.org>
Tue, 23 Feb 2016 07:31:19 +0000 (13:01 +0530)
(cherry picked from commit 77fe016206a6f88c95ca08559f66e311d24271de)

bin/tests/system/checkconf/tests.sh

index f6c86db976e27e94ae8ae858f2bfe6102c4691af..8cbbb18b198efcb45d46ba2356c9fa0d558083f8 100644 (file)
@@ -53,6 +53,15 @@ do
        status=`expr $status + $ret`
 done
 
+for good in good-*.conf
+do
+       ret=0
+       echo "I: checking that named-checkconf detects no error in $good"
+       $CHECKCONF $good > /dev/null 2>&1
+       if [ $? != 0 ]; then echo "I:failed"; ret=1; fi
+       status=`expr $status + $ret`
+done
+
 echo "I: checking that named-checkconf -z catches missing hint file"
 ret=0
 $CHECKCONF -z hint-nofile.conf > hint-nofile.out 2>&1 && ret=1