if_ovpn tests: fix WITHOUT_PF

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é <olivier@freebsd.org>
Sponsored by:	Rubicon Communications, LLC ("Netgate")
This commit is contained in:
Kristof Provost 2022-08-18 11:23:33 +02:00
parent ff7812ee7d
commit eed634d113

View file

@ -1,8 +1,12 @@
.include <src.opts.mk>
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