4197. [bug] 'named-checkconf -z' didn't handle 'in-view' clauses.

[RT #40603]
This commit is contained in:
Mark Andrews
2015-09-09 17:56:23 +10:00
parent 4ca7391e64
commit 075a3d60c2
5 changed files with 29 additions and 0 deletions

View File

@@ -254,5 +254,12 @@ grep "range 8610 8614;" checkconf.out7 > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; ret=1; fi
status=`expr $status + $ret`
echo "I: check that named-checkconf -z handles in-view"
ret=0
$CHECKCONF -z in-view-good.conf > checkconf.out7 2>&1 || ret=1
grep "zone shared.example/IN: loaded serial" < checkconf.out7 > /dev/null || ret=1
if [ $ret != 0 ]; then echo "I:failed"; ret=1; fi
status=`expr $status + $ret`
echo "I:exit status: $status"
exit $status