From: Felipe Gasper Date: Tue, 6 Dec 2022 19:37:35 +0000 (-0500) Subject: Skip drill tests for sig chasing as appropriate to build. X-Git-Tag: release-1.8.4-rc1~12^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5059586d0652fb7c4479530e5d5d21c666493ae6;p=thirdparty%2Fldns.git Skip drill tests for sig chasing as appropriate to build. This is needed for macOS CI testing. --- diff --git a/test/18-drill-tests1.tpkg/18-drill-tests1.test b/test/18-drill-tests1.tpkg/18-drill-tests1.test index d7bd9bb0..18cae41e 100644 --- a/test/18-drill-tests1.tpkg/18-drill-tests1.test +++ b/test/18-drill-tests1.tpkg/18-drill-tests1.test @@ -57,17 +57,24 @@ wait_ldns_testns_up $TMPF1 PORT=`cat $TMPF1 | grep Listening | cut -d " " -f 4` echo "../../drill/drill -p $PORT -k test2-key -S @localhost ok.ok.test.jelte.nlnetlabs.nl" -../../drill/drill -p $PORT -k test2-key -S @localhost ok.ok.test.jelte.nlnetlabs.nl> $TMPF2 -if [[ $? -ne 0 ]]; then - cat $TMPF2 - if grep "No trusted keys found in tree: first error was: DNSSEC signature has expired" $TMPF2; then - echo "yes it is expired" - else - echo "Error in chase" - RESULT=1 - fi +if ../../drill/drill -h | grep \\s\\-S\\s >/dev/null; then + ../../drill/drill -p $PORT -k test2-key -S @localhost ok.ok.test.jelte.nlnetlabs.nl> $TMPF2 + + if [[ $? -ne 0 ]]; then + cat $TMPF2 + if grep "No trusted keys found in tree: first error was: DNSSEC signature has expired" $TMPF2; then + echo "yes it is expired" + else + echo "Error in chase" + RESULT=1 + fi + fi + +else + echo "SKIP (drill lacks -S)" fi + ../../drill/drill -p $PORT -t CH TXT server.stop. @localhost # make sure testns server is stopped