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 184b40bdbdSAlan Somers 19dd49816bSKristof ProvostTESTS_SUBDIRS+= bpf 20067acae2SKristof ProvostTESTS_SUBDIRS+= if_ovpn 21775dc861SAlexander V. ChernikovTESTS_SUBDIRS+= routing 22775dc861SAlexander V. Chernikov 23c0f13232SMark Johnston# The netmap bridge application is used by if_wg tests. 24c0f13232SMark Johnston.PATH: ${SRCTOP}/tools/tools/netmap 25c0f13232SMark JohnstonPROGS+= bridge 26c0f13232SMark JohnstonLIBADD.bridge+= netmap 27c0f13232SMark Johnston 284b40bdbdSAlan Somers# The tests are written to be run in parallel, but doing so leads to random 294b40bdbdSAlan Somers# panics. I think it's because the kernel's list of interfaces isn't properly 304b40bdbdSAlan Somers# locked. 314b40bdbdSAlan SomersTEST_METADATA+= is_exclusive=true 324b40bdbdSAlan Somers 334ae3a97eSKristof Provost${PACKAGE}FILES+= \ 343e87f800SKristof Provost dhclient_pcp.conf \ 353e87f800SKristof Provost pcp.py \ 364ae3a97eSKristof Provost stp.py 374ae3a97eSKristof Provost 383e87f800SKristof Provost${PACKAGE}FILESMODE_pcp.py= 0555 394ae3a97eSKristof Provost${PACKAGE}FILESMODE_stp.py= 0555 404ae3a97eSKristof Provost 414b40bdbdSAlan SomersMAN= 425458a63bSKristof ProvostPROGS+= randsleep 43*a1174b3bSKyle EvansPROGS+= transient_tuntap 444b40bdbdSAlan Somers 458ccf5032SOlivier CochardCFLAGS+= -I${.CURDIR:H:H} 468ccf5032SOlivier Cochard 474b40bdbdSAlan Somers.include <bsd.test.mk> 48