From: W.C.A. Wijngaards Date: Mon, 1 Jul 2024 15:11:20 +0000 (+0200) Subject: - ipset-pf-support, fix to skip unit test if no pf dev. X-Git-Tag: release-1.21.0rc1~48^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=03ac9022963a0fc401d04fa0eb0df47347d5bab9;p=thirdparty%2Funbound.git - ipset-pf-support, fix to skip unit test if no pf dev. --- diff --git a/testdata/ipset.tdir/ipset.pre b/testdata/ipset.tdir/ipset.pre index 42c94fac4..7c61e6468 100644 --- a/testdata/ipset.tdir/ipset.pre +++ b/testdata/ipset.tdir/ipset.pre @@ -8,6 +8,11 @@ PRE="../.." if grep "define USE_IPSET 1" $PRE/config.h; then echo test enabled; else skip_test "test skipped"; fi +if grep "define HAVE_NET_PFVAR_H 1" $PRE/config.h; then + if test ! -f /dev/pf; then + skip_test "no /dev/pf" + fi +fi get_random_port 2 UNBOUND_PORT=$RND_PORT