xref: /freebsd/tests/sys/net/Makefile (revision aa9f669d09a7a193d470477398815f45a42c0270)
14ae3a97eSKristof ProvostPACKAGE=	tests
24b40bdbdSAlan Somers
34b40bdbdSAlan SomersTESTSDIR=	${TESTSBASE}/sys/net
44b40bdbdSAlan SomersBINDIR=		${TESTSDIR}
54b40bdbdSAlan Somers
6095aabf7SKristof ProvostATF_TESTS_C+=	if_epair
7d116b843SKristof ProvostATF_TESTS_SH+=	if_epair_test
8095aabf7SKristof ProvostATF_TESTS_SH+=	if_bridge_test
9da9f1571SLexi WinterTEST_METADATA.if_bridge_test+=	execenv="jail"
10da9f1571SLexi WinterTEST_METADATA.if_bridge_test+=	execenv_jail_params="vnet allow.raw_sockets"
114b40bdbdSAlan SomersATF_TESTS_SH+=	if_clone_test
126e0755b3SKristof ProvostATF_TESTS_SH+=	if_gif
13095aabf7SKristof ProvostATF_TESTS_SH+=	if_lagg_test
14eb5e0755SKristof ProvostATF_TESTS_SH+=	if_stf
153846e575SKristof ProvostATF_TESTS_SH+=	if_tun_test
16fcd69db2SKristof ProvostATF_TESTS_SH+=	if_vlan
178fb97396SJohn BaldwinATF_TESTS_SH+=	if_wg
18*aa9f669dSPouria Mousavizadeh TehraniATF_TESTS_SH+=	if_geneve
194b40bdbdSAlan Somers
20dd49816bSKristof ProvostTESTS_SUBDIRS+=	bpf
21067acae2SKristof ProvostTESTS_SUBDIRS+=	if_ovpn
22775dc861SAlexander V. ChernikovTESTS_SUBDIRS+=	routing
23775dc861SAlexander V. Chernikov
24c0f13232SMark Johnston# The netmap bridge application is used by if_wg tests.
25c0f13232SMark Johnston.PATH:	${SRCTOP}/tools/tools/netmap
26c0f13232SMark JohnstonPROGS+=		bridge
27c0f13232SMark JohnstonLIBADD.bridge+=	netmap
28c0f13232SMark Johnston
294b40bdbdSAlan Somers# The tests are written to be run in parallel, but doing so leads to random
304b40bdbdSAlan Somers# panics.  I think it's because the kernel's list of interfaces isn't properly
314b40bdbdSAlan Somers# locked.
324b40bdbdSAlan SomersTEST_METADATA+=	is_exclusive=true
334b40bdbdSAlan Somers
344ae3a97eSKristof Provost${PACKAGE}FILES+=	\
353e87f800SKristof Provost		dhclient_pcp.conf \
363e87f800SKristof Provost		pcp.py \
374ae3a97eSKristof Provost		stp.py
384ae3a97eSKristof Provost
393e87f800SKristof Provost${PACKAGE}FILESMODE_pcp.py=		0555
404ae3a97eSKristof Provost${PACKAGE}FILESMODE_stp.py=		0555
414ae3a97eSKristof Provost
424b40bdbdSAlan SomersMAN=
435458a63bSKristof ProvostPROGS+=		randsleep
44a1174b3bSKyle EvansPROGS+=		transient_tuntap
454b40bdbdSAlan Somers
468ccf5032SOlivier CochardCFLAGS+=        -I${.CURDIR:H:H}
478ccf5032SOlivier Cochard
484b40bdbdSAlan Somers.include <bsd.test.mk>
49