mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-09-04 00:25:29 +00:00
Only use delv if available in mkeys test
Check that $DELV is an executable before using it in a test.
This commit is contained in:
@@ -111,15 +111,17 @@ grep "example..*.RRSIG..*TXT" dig.out.ns2.test$n > /dev/null || ret=1
|
|||||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
status=$((status+ret))
|
status=$((status+ret))
|
||||||
|
|
||||||
n=$((n+1))
|
if [ -x "$DELV" ]; then
|
||||||
ret=0
|
n=$((n+1))
|
||||||
echo_i "check positive validation using delv ($n)"
|
ret=0
|
||||||
delv_with_opts @10.53.0.1 txt example > delv.out$n || ret=1
|
echo_i "check positive validation using delv ($n)"
|
||||||
grep "; fully validated" delv.out$n > /dev/null || ret=1 # redundant
|
delv_with_opts @10.53.0.1 txt example > delv.out$n || ret=1
|
||||||
grep "example..*TXT.*This is a test" delv.out$n > /dev/null || ret=1
|
grep "; fully validated" delv.out$n > /dev/null || ret=1 # redundant
|
||||||
grep "example..*.RRSIG..*TXT" delv.out$n > /dev/null || ret=1
|
grep "example..*TXT.*This is a test" delv.out$n > /dev/null || ret=1
|
||||||
if [ $ret != 0 ]; then echo_i "failed"; fi
|
grep "example..*.RRSIG..*TXT" delv.out$n > /dev/null || ret=1
|
||||||
status=$((status+ret))
|
if [ $ret != 0 ]; then echo_i "failed"; fi
|
||||||
|
status=$((status+ret))
|
||||||
|
fi
|
||||||
|
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
echo_i "check for failed validation due to wrong key in managed-keys ($n)"
|
echo_i "check for failed validation due to wrong key in managed-keys ($n)"
|
||||||
|
Reference in New Issue
Block a user