]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Skip 21-match-response-with-query.tpkg on MacOS
authorWillem Toorop <willem@nlnetlabs.nl>
Wed, 10 Jun 2026 10:21:00 +0000 (12:21 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Wed, 10 Jun 2026 10:21:00 +0000 (12:21 +0200)
Because the test needs ldns-testns to bind to 127.0.0.2 which MacOS cannot.

test/test_all.sh

index c727d8a5d9188a32d7a6ee11849784adf7684d44..b4314879256bf9970bd5aac2c9dc9223e0ecbffa 100755 (executable)
@@ -22,6 +22,7 @@ then
 fi
 
 is_freebsd=$(uname -s 2>&1 | grep -i -c 'freebsd')
+is_macos=$(uname -s 2>&1 | grep -i -c 'darwin')
 test_tool_avail "dig"
 
 echo start the test at "$(date)" in "$(pwd)"
@@ -33,6 +34,11 @@ if [[ "$is_freebsd" -eq 0 ]]; then
     $TPKG -a ../.. fake 02-lint.tpkg
 fi
 
+# Test needs to bind to 127.0.0.2 which doesn't work on MacOS
+if [[ "$is_macos" -ne 0 ]]; then
+    $TPKG -a ../.. fake 21-match-response-with-query.tpkg
+fi
+
 $TPKG -a ../.. fake 07-compile-examples.tpkg
 $TPKG -a ../.. fake 16-compile-builddir.tpkg
 $TPKG -a ../.. fake 30-load-pyldns.tpkg