xref: /freebsd/tests/sys/net/Makefile (revision da9f1571dcd28201a235fa230329ae3b1aa8e020)
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
9f464bd04SEdward Tomasz NapieralaTEST_METADATA.if_bridge_test+=	required_programs="python"
10*da9f1571SLexi WinterTEST_METADATA.if_bridge_test+=	execenv="jail"
11*da9f1571SLexi WinterTEST_METADATA.if_bridge_test+=	execenv_jail_params="vnet allow.raw_sockets"
124b40bdbdSAlan SomersATF_TESTS_SH+=	if_clone_test
136e0755b3SKristof ProvostATF_TESTS_SH+=	if_gif
14095aabf7SKristof ProvostATF_TESTS_SH+=	if_lagg_test
15eb5e0755SKristof ProvostATF_TESTS_SH+=	if_stf
163846e575SKristof ProvostATF_TESTS_SH+=	if_tun_test
17fcd69db2SKristof ProvostATF_TESTS_SH+=	if_vlan
188fb97396SJohn BaldwinATF_TESTS_SH+=	if_wg
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
444b40bdbdSAlan Somers
458ccf5032SOlivier CochardCFLAGS+=        -I${.CURDIR:H:H}
468ccf5032SOlivier Cochard
474b40bdbdSAlan Somers.include <bsd.test.mk>
48