diff --git a/bin/tests/system/doth/tests.sh b/bin/tests/system/doth/tests.sh index d22f0ef649..eb631319c9 100644 --- a/bin/tests/system/doth/tests.sh +++ b/bin/tests/system/doth/tests.sh @@ -96,10 +96,10 @@ n=$((n+1)) echo_i "testing incoming XoT functionality (from the first secondary) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example; then - grep "^;" "dig.out.ns2.example.test$n" | cat_i digcomp example.axfr.good "dig.out.ns2.example.test$n" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns2.example.test$n" | cat_i ret=1 fi if test $ret != 0 ; then echo_i "failed"; fi @@ -110,8 +110,7 @@ if [ -n "$run_san_tests" ]; then echo_i "testing incoming XoT functionality (from the first secondary, no SubjectAltName, failure expected) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example3; then - grep "^;" "dig.out.ns2.example3.test$n" | cat_i - test -f "ns2/example3.db" && ret=1 + ret=1 else echo_i "timed out waiting for zone transfer" fi @@ -123,10 +122,10 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, StrictTLS via implicit IP) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example4; then - grep "^;" "dig.out.ns2.example4.test$n" | cat_i - test -f "ns2/example4.db" || ret=1 + retry_quiet 5 test -f "ns2/example4.db" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns2.example4.test$n" | cat_i ret=1 fi if [ $ret != 0 ]; then echo_i "failed"; fi @@ -136,10 +135,10 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, StrictTLS via specified IPv4) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example5; then - grep "^;" "dig.out.ns2.example5.test$n" | cat_i - test -f "ns2/example5.db" || ret=1 + retry_quiet 5 test -f "ns2/example5.db" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns2.example5.test$n" | cat_i ret=1 fi if [ $ret != 0 ]; then echo_i "failed"; fi @@ -149,10 +148,10 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, StrictTLS via specified IPv6) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example6; then - grep "^;" "dig.out.ns2.example6.test$n" | cat_i - test -f "ns2/example6.db" || ret=1 + retry_quiet 5 test -f "ns2/example6.db" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns2.example6.test$n" | cat_i ret=1 fi if [ $ret != 0 ]; then echo_i "failed"; fi @@ -162,8 +161,7 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, wrong hostname, failure expected) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example7; then - grep "^;" "dig.out.ns2.example7.test$n" | cat_i - test -f "ns2/example7.db" && ret=1 + ret=1 else echo_i "timed out waiting for zone transfer" fi @@ -174,8 +172,7 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, expired certificate, failure expected) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example8; then - grep "^;" "dig.out.ns2.example8.test$n" | cat_i - test -f "ns2/example8.db" && ret=1 + ret=1 else echo_i "timed out waiting for zone transfer" fi @@ -186,10 +183,10 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, MutualTLS) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example9; then - grep "^;" "dig.out.ns2.example9.test$n" | cat_i - test -f "ns2/example9.db" || ret=1 + retry_quiet 5 test -f "ns2/example9.db" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns2.example9.test$n" | cat_i ret=1 fi if [ $ret != 0 ]; then echo_i "failed"; fi @@ -199,8 +196,7 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, MutualTLS, no client cert, failure expected) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example10; then - grep "^;" "dig.out.ns2.example10.test$n" | cat_i - test -f "ns2/example10.db" && ret=1 + ret=1 else echo_i "timed out waiting for zone transfer" fi @@ -211,8 +207,7 @@ n=$((n + 1)) echo_i "testing incoming XoT functionality (from the first secondary, MutualTLS, expired client cert, failure expected) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 2 example11; then - grep "^;" "dig.out.ns2.example11.test$n" | cat_i - test -f "ns2/example11.db" && ret=1 + ret=1 else echo_i "timed out waiting for zone transfer" fi @@ -223,10 +218,10 @@ n=$((n+1)) echo_i "testing incoming XoT functionality (from the second secondary) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 3 example; then - grep "^;" "dig.out.ns3.example.test$n" | cat_i digcomp example.axfr.good "dig.out.ns3.example.test$n" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns3.example.test$n" | cat_i ret=1 fi if test $ret != 0 ; then echo_i "failed"; fi @@ -236,8 +231,7 @@ n=$((n+1)) echo_i "testing incoming XoT functionality (from the second secondary, mismatching ciphers, failure expected) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 3 example2; then - grep "^;" "dig.out.ns3.example2.test$n" | cat_i - test -f "ns3/example2.db" && ret=1 + ret=1 else echo_i "timed out waiting for zone transfer" fi @@ -248,10 +242,10 @@ n=$((n+1)) echo_i "testing incoming XoT functionality (from the third secondary) ($n)" ret=0 if retry_quiet 10 wait_for_tls_xfer 4 example; then - grep "^;" "dig.out.ns4.example.test$n" | cat_i digcomp example.axfr.good "dig.out.ns4.example.test$n" || ret=1 else echo_i "timed out waiting for zone transfer" + grep "^;" "dig.out.ns4.example.test$n" | cat_i ret=1 fi if test $ret != 0 ; then echo_i "failed"; fi