From: Mark Andrews Date: Thu, 6 Feb 2020 03:16:30 +0000 (+1100) Subject: indent some test descriptions/continuation X-Git-Tag: v9.14.11~13^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf40f7670317011855cf88b00162ce9f5d7ecfe8;p=thirdparty%2Fbind9.git indent some test descriptions/continuation (cherry picked from commit ec95bc6f2c8e0d4c211f9c7feb761a100681d098) --- diff --git a/bin/tests/system/dnssec/tests.sh b/bin/tests/system/dnssec/tests.sh index b632bd79ff0..3043807d3e4 100644 --- a/bin/tests/system/dnssec/tests.sh +++ b/bin/tests/system/dnssec/tests.sh @@ -1349,7 +1349,7 @@ test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) echo_i "basic dnssec-signzone checks:" -echo_i " two DNSKEYs ($n)" +echo_ic "two DNSKEYs ($n)" ret=0 ( cd signer/general || exit 1 @@ -1361,7 +1361,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " one non-KSK DNSKEY ($n)" +echo_ic "one non-KSK DNSKEY ($n)" ret=0 ( cd signer/general || exit 1 @@ -1373,7 +1373,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " one KSK DNSKEY ($n)" +echo_ic "one KSK DNSKEY ($n)" ret=0 ( cd signer/general || exit 1 @@ -1385,7 +1385,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " three DNSKEY ($n)" +echo_ic "three DNSKEY ($n)" ret=0 ( cd signer/general || exit 1 @@ -1397,7 +1397,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " three DNSKEY, one private key missing ($n)" +echo_ic "three DNSKEY, one private key missing ($n)" ret=0 ( cd signer/general || exit 1 @@ -1409,7 +1409,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " four DNSKEY ($n)" +echo_ic "four DNSKEY ($n)" ret=0 ( cd signer/general || exit 1 @@ -1421,7 +1421,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " two DNSKEY, both private keys missing ($n)" +echo_ic "two DNSKEY, both private keys missing ($n)" ret=0 ( cd signer/general || exit 1 @@ -1433,7 +1433,7 @@ n=$((n+1)) test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) -echo_i " two DNSKEY, one private key missing ($n)" +echo_ic "two DNSKEY, one private key missing ($n)" ret=0 ( cd signer/general || exit 1 @@ -3418,7 +3418,7 @@ test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) echo_i "check that CDS records are signed only using KSK when added by" -echo_i " nsupdate when dnssec-dnskey-kskonly is yes ($n)" +echo_ic "nsupdate when dnssec-dnskey-kskonly is yes ($n)" ret=0 keyid=$(cat ns2/cds-kskonly.secure.id) ( @@ -3444,7 +3444,7 @@ test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) echo_i "check that CDS deletion records are signed only using KSK when added by" -echo_i " nsupdate when dnssec-dnskey-kskonly is yes ($n)" +echo_ic "nsupdate when dnssec-dnskey-kskonly is yes ($n)" ret=0 keyid=$(cat ns2/cds-kskonly.secure.id) ( @@ -3651,7 +3651,7 @@ test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) echo_i "check that CDNSKEY records are signed only using KSK when added by" -echo_i " nsupdate when dnssec-dnskey-kskonly is yes ($n)" +echo_ic "nsupdate when dnssec-dnskey-kskonly is yes ($n)" ret=0 keyid=$(cat ns2/cdnskey-kskonly.secure.id) ( @@ -3674,7 +3674,7 @@ test "$ret" -eq 0 || echo_i "failed" status=$((status+ret)) echo_i "check that CDNSKEY deletion records are signed only using KSK when added by" -echo_i " nsupdate when dnssec-dnskey-kskonly is yes ($n)" +echo_ic "nsupdate when dnssec-dnskey-kskonly is yes ($n)" ret=0 keyid=$(cat ns2/cdnskey-kskonly.secure.id) ( diff --git a/bin/tests/system/ixfr/tests.sh b/bin/tests/system/ixfr/tests.sh index e14fbc028c3..c07251d4d0a 100644 --- a/bin/tests/system/ixfr/tests.sh +++ b/bin/tests/system/ixfr/tests.sh @@ -206,7 +206,7 @@ echo_i "testing request-ixfr option in view vs zone ($n)" # we want to make sure that a change to sub.test results in AXFR, while # changes to test. result in IXFR -echo_i " this result should be AXFR" +echo_ic "this result should be AXFR" cp ns3/subtest1.db ns3/subtest.db # change to sub.test zone, should be AXFR $RNDCCMD 10.53.0.3 reload | sed 's/^/ns3 /' | cat_i @@ -231,7 +231,7 @@ do sleep 1 done -echo_i " this result should be AXFR" +echo_ic "this result should be AXFR" for i in 0 1 2 3 4 5 6 7 8 9 do NONINCR=`grep 'sub\.test/IN/primary' ns4/named.run|grep "got nonincremental" | wc -l` @@ -240,13 +240,15 @@ do done if [ $NONINCR -ne 2 ] then - echo_i "failed to get nonincremental response in 2nd AXFR test" + echo_ic "failed to get nonincremental response in 2nd AXFR test" + + echo_i "failed" status=1 else - echo_i " success: AXFR it was" + echo_ic "success: AXFR it was" fi -echo_i " this result should be IXFR" +echo_ic "this result should be IXFR" cp ns3/mytest2.db ns3/mytest.db # change to test zone, should be IXFR $RNDCCMD 10.53.0.3 reload | sed 's/^/ns3 /' | cat_i @@ -279,10 +281,12 @@ do done if [ $INCR -ne 2 ] then - echo_i "failed to get incremental response in 2nd IXFR test" + echo_ic "failed to get incremental response in 2nd IXFR test" + + echo_i "failed" status=1 else - echo_i " success: IXFR it was" + echo_ic "success: IXFR it was" fi n=$((n+1)) @@ -311,8 +315,8 @@ awk '$4 == "SOA" { if ($7 == 4) exit(0); else exit(1);}' dig.out1.test$n || ret= $DIG $DIGOPTS ixfr=1 test @10.53.0.4 > dig.out3.test$n || ret=1 awk '$4 == "SOA" { soacnt++} END { if (soacnt == 6) exit(0); else exit(1);}' dig.out3.test$n || ret=1 if [ ${ret} != 0 ]; then - echo_i "failed"; - status=1; + echo_i "failed" + status=1 fi # wait for slave to transfer zone @@ -338,8 +342,8 @@ $DIG $DIGOPTS ixfr=1 +notcp test @10.53.0.5 > dig.out2.test$n || ret=1 awk '$4 == "SOA" { soacnt++} END {if (soacnt == 2) exit(0); else exit(1);}' dig.out1.test$n || ret=1 awk '$4 == "SOA" { soacnt++} END {if (soacnt == 1) exit(0); else exit(1);}' dig.out2.test$n || ret=1 if [ ${ret} != 0 ]; then - echo_i "failed"; - status=1; + echo_i "failed" + status=1 fi n=$((n+1))