From: Mark Andrews Date: Thu, 4 Apr 2013 20:37:40 +0000 (+1100) Subject: s/-e/-x/ X-Git-Tag: v9.9.3rc1~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=775085d8f19a0ec6d980c07d9cdb2eea9c16bcc0;p=thirdparty%2Fbind9.git s/-e/-x/ (cherry picked from commit c2838610c6abe0679a3b2713cf8c8b10b0dc4967) --- diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index a845d567490..c8c169c6d90 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