]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Skip drill tests for sig chasing as appropriate to build.
authorFelipe Gasper <felipe@felipegasper.com>
Tue, 6 Dec 2022 19:37:35 +0000 (14:37 -0500)
committerFelipe Gasper <felipe@felipegasper.com>
Tue, 6 Dec 2022 19:40:25 +0000 (14:40 -0500)
This is needed for macOS CI testing.

test/18-drill-tests1.tpkg/18-drill-tests1.test

index d7bd9bb05b529f481d40a9de136e0e5480b213b1..18cae41e0e6efd58a88e5b21d866509ca3a8aed8 100644 (file)
@@ -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