1PACKAGE= tests 2 3TESTSDIR= ${TESTSBASE}/sys/net 4BINDIR= ${TESTSDIR} 5 6ATF_TESTS_C+= if_epair 7ATF_TESTS_SH+= if_epair_test 8ATF_TESTS_SH+= if_bridge_test 9TEST_METADATA.if_bridge_test+= required_programs="python" 10ATF_TESTS_SH+= if_clone_test 11ATF_TESTS_SH+= if_gif 12ATF_TESTS_SH+= if_lagg_test 13ATF_TESTS_SH+= if_stf 14ATF_TESTS_SH+= if_tun_test 15ATF_TESTS_SH+= if_vlan 16ATF_TESTS_SH+= if_wg 17 18TESTS_SUBDIRS+= if_ovpn 19TESTS_SUBDIRS+= routing 20 21# The netmap bridge application is used by if_wg tests. 22.PATH: ${SRCTOP}/tools/tools/netmap 23PROGS+= bridge 24LIBADD.bridge+= netmap 25 26# The tests are written to be run in parallel, but doing so leads to random 27# panics. I think it's because the kernel's list of interfaces isn't properly 28# locked. 29TEST_METADATA+= is_exclusive=true 30 31${PACKAGE}FILES+= \ 32 dhclient_pcp.conf \ 33 pcp.py \ 34 stp.py 35 36${PACKAGE}FILESMODE_pcp.py= 0555 37${PACKAGE}FILESMODE_stp.py= 0555 38 39MAN= 40PROGS+= randsleep 41 42CFLAGS+= -I${.CURDIR:H:H} 43 44.include <bsd.test.mk> 45