opnsense-src/tests/sys/netinet/Makefile
Mark Johnston a079f2b52a fibs_test: Run in a jail
These tests assume exclusive use of one or more FIBs and so can't be run
in parallel.  Running them in a VNET jail sidesteps this problem.

MFC after:	1 week
Sponsored by:	Klara, Inc.
Sponsored by:	Stormshield
2024-11-21 18:54:59 +00:00

53 lines
1.2 KiB
Makefile

PACKAGE= tests
TESTSDIR= ${TESTSBASE}/sys/netinet
BINDIR= ${TESTSDIR}
TESTS_SUBDIRS+= libalias
ATF_TESTS_C= ip_reass_test \
ip6_v4mapped_test \
so_reuseport_lb_test \
socket_afinet \
tcp_connect_port_test \
tcp_implied_connect \
tcp_md5_getsockopt \
udp_io
ATF_TESTS_SH= arp \
carp \
divert \
fibs \
fibs_test \
forward \
lpm \
output \
redirect
ATF_TESTS_PYTEST+= carp.py
ATF_TESTS_PYTEST+= igmp.py
# Some of the arp tests look for log messages in the dmesg buffer, so run them
# serially to avoid problems with interleaved output.
TEST_METADATA.arp+= is_exclusive="true"
TEST_METADATA.divert+= required_programs="python" \
execenv="jail" \
execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.fibs_test+= execenv="jail" \
execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.forward+= required_programs="python" \
execenv="jail" \
execenv_jail_params="vnet allow.raw_sockets"
TEST_METADATA.output+= required_programs="python"
TEST_METADATA.redirect+= required_programs="python"
TEST_METADATA.tcp6_v4mapped_bind_test+= is_exclusive="true"
PROGS= udp_dontroute tcp_user_cookie
${PACKAGE}FILES+= redirect.py
${PACKAGE}FILESMODE_redirect.py=0555
MAN=
.include <bsd.test.mk>