- ipset-pf-support, fix to skip unit test if no pf dev.

This commit is contained in:
W.C.A. Wijngaards 2024-07-01 17:11:20 +02:00
parent 97ad1df343
commit 03ac902296

View 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