diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index 35b2658556..9a57063c6b 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -134,7 +134,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking postive validation NSEC using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.example > sample.out$n || ret=1 @@ -157,7 +157,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking positive validation NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.nsec3.example > sample.out$n || ret=1 @@ -180,7 +180,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking positive validation OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.optout.example > sample.out$n || ret=1 @@ -202,7 +202,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking positive wildcard validation NSEC using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.wild.example > sample.out$n || ret=1 @@ -242,7 +242,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking positive wildcard validation NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.wild.nsec3.example > sample.out$n || ret=1 @@ -266,7 +266,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking positive wildcard validation OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.wild.optout.example > sample.out$n || ret=1 @@ -288,7 +288,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative validation NXDOMAIN NSEC using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 q.example > /dev/null 2> sample.out$n || ret=1 @@ -311,7 +311,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative validation NXDOMAIN NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 q.nsec3.example > /dev/null 2> sample.out$n || ret=1 @@ -335,7 +335,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative validation NXDOMAIN OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 q.optout.example > /dev/null 2> sample.out$n || ret=1 @@ -357,7 +357,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative validation NODATA OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t txt 10.53.0.4 a.example > /dev/null 2> sample.out$n || ret=1 @@ -381,7 +381,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative validation NODATA NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t txt 10.53.0.4 a.nsec3.example > /dev/null 2> sample.out$n || ret=1 @@ -405,7 +405,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative validation NODATA OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t txt 10.53.0.4 a.optout.example > /dev/null 2> sample.out$n || ret=1 @@ -426,7 +426,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative wildcard validation NSEC using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t txt 10.53.0.4 b.wild.example > /dev/null 2> sample.out$n || ret=1 @@ -446,7 +446,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative wildcard validation NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t txt 10.53.0.4 b.wild.nsec3.example > /dev/null 2> sample.out$n || ret=1 @@ -470,7 +470,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking negative wildcard validation OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t txt 10.53.0.4 b.optout.nsec3.example > /dev/null 2> sample.out$n || ret=1 @@ -494,7 +494,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking 1-server insecurity proof NSEC using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.insecure.example > sample.out$n || ret=1 @@ -516,7 +516,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking 1-server insecurity proof NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.insecure.nsec3.example > sample.out$n || ret=1 @@ -538,7 +538,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking 1-server insecurity proof OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.insecure.optout.example > sample.out$n || ret=1 @@ -562,7 +562,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking 1-server negative insecurity proof NSEC using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 q.insecure.example > /dev/null 2> sample.out$n || ret=1 @@ -586,7 +586,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking 1-server negative insecurity proof NSEC3 using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 q.insecure.nsec3.example > /dev/null 2> sample.out$n || ret=1 @@ -610,7 +610,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking 1-server negative insecurity proof OPTOUT using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 q.insecure.optout.example > /dev/null 2> sample.out$n || ret=1 @@ -807,7 +807,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking failed validation using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.bogus.example > /dev/null 2> sample.out$n || ret=1 @@ -852,7 +852,7 @@ n=`expr $n + 1` if [ $ret != 0 ]; then echo "I:failed"; fi status=`expr $status + $ret` -if [ -e ${SAMPLE} ] ; then +if [ -x ${SAMPLE} ] ; then ret=0 echo "I:checking that validation fails when key record is missing using dns_client ($n)" $SAMPLE $SAMPLEKEY -p 5300 -t a 10.53.0.4 a.b.keyless.example > /dev/null 2> sample.out$n || ret=1