summaryrefslogtreecommitdiff
path: root/tests/sys/netinet/Makefile
blob: b3d76d1da125ff5ce3b4676aad17a1af314c28bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
PACKAGE=	tests

TESTSDIR=	${TESTSBASE}/sys/netinet
BINDIR=		${TESTSDIR}

TESTS_SUBDIRS+=	libalias

ATF_TESTS_C=	broadcast \
		fibs_multibind_test \
		ip_reass_test \
		ip6_v4mapped_test \
		so_reuseport_lb_test \
		socket_afinet \
		tcp_connect_port_test \
		tcp_implied_connect \
		tcp_md5_getsockopt \
		udp_bindings \
		udp_io

ATF_TESTS_SH=	arp \
		carp \
		divert \
		fibs \
		fibs_test \
		forward \
		lpm \
		multicast \
		output \
		redirect

ATF_TESTS_PYTEST+=	carp.py
ATF_TESTS_PYTEST+=	igmp.py
ATF_TESTS_PYTEST+=	tcp_hpts_test.py

LIBADD.so_reuseport_lb_test=	pthread
LIBADD.udp_bindings=		pthread

# 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.multicast+= execenv="jail"		\
			execenv_jail_params="vnet"
TEST_METADATA.output+=	required_programs="python"
TEST_METADATA.redirect+= required_programs="python"

PROGS=	udp_dontroute tcp_user_cookie multicast-send multicast-receive

${PACKAGE}FILES+=		redirect.py

${PACKAGE}FILESMODE_redirect.py=0555

MAN=

.include <bsd.test.mk>