]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- ipset-pf-support, fix to skip unit test if no pf dev.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Jul 2024 15:11:20 +0000 (17:11 +0200)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 1 Jul 2024 15:11:20 +0000 (17:11 +0200)
testdata/ipset.tdir/ipset.pre

index 42c94fac45e06c92dc3404f04b318091b071dc79..7c61e646805d1e598c0fe8453bbb2ee10e1ec2df 100644 (file)
@@ -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