From eed634d113df69d26eb9480e4e95919b2e9ee5bc Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Thu, 18 Aug 2022 11:23:33 +0200 Subject: [PATCH] if_ovpn tests: fix WITHOUT_PF MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit At least one if_ovpn.sh test relies on pf, so the file includes netpfil/pf/utils.subr, which doesn't exist if WITHOUT_PF is set. Do not install the if_ovpn.sh tests if pf is disabled. Suggested by: Olivier Cochard-Labbé Sponsored by: Rubicon Communications, LLC ("Netgate") --- tests/sys/net/if_ovpn/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/sys/net/if_ovpn/Makefile b/tests/sys/net/if_ovpn/Makefile index a221e25b7e9..63fe05077f1 100644 --- a/tests/sys/net/if_ovpn/Makefile +++ b/tests/sys/net/if_ovpn/Makefile @@ -1,8 +1,12 @@ +.include + PACKAGE= tests TESTSDIR= ${TESTSBASE}/sys/net/if_ovpn +.if ${MK_PF} != "no" ATF_TESTS_SH+= if_ovpn +.endif ATF_TESTS_C+= if_ovpn_c LIBADD+= nv