]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add test for checkconf glob include
authorMatthijs Mekking <matthijs@isc.org>
Mon, 10 Feb 2020 10:24:28 +0000 (11:24 +0100)
committerDiego Fronza <diego@isc.org>
Mon, 24 Feb 2020 16:48:48 +0000 (13:48 -0300)
bin/tests/system/include-multiplecfg/tests.sh

index d5c37caaa654a61262bfa94372112f6ee0303c85..5651536e0af0025b99d793fc06a8ef84452cecab 100644 (file)
@@ -50,5 +50,13 @@ grep '^mars.com.' dig.out.ns2.$n > /dev/null || ret=1
 if [ $ret != 0 ]; then echo_i "failed"; fi
 status=`expr $status + $ret`
 
+# Test 4: named-checkconf correctly parses glob includes.
+n=`expr $n + 1`
+echo_i "checking named-checkconf with glob include ($n)"
+ret=0
+(cd ns2; $CHECKCONF named.conf) || ret=1
+if [ $ret != 0 ]; then echo_i "failed"; fi
+status=`expr $status + $ret`
+
 echo_i "exit status: $status"
 [ $status -eq 0 ] || exit 1