freebsd-src/tests/sys/netinet/Makefile
Gleb Smirnoff 861274c9f8 tests/netinet: add a demo of TCP implied connect
The TCP implied connect is an artifact left after T/TCP.  To my surprise
it still works, hence the existence of this test.  Please read this email
first:

https://lists.freebsd.org/pipermail/freebsd-net/2010-August/026311.html

An interesting fact that this test takes 220 - 240 milliseconds to
execute on my Threadripper PRO.  Flipping the '#if 0' to '#if 1' in the
test, thus bringing it back to normal connect(2), would speed the test up
a hundred times and I guess all this time is fork+exec of the test.
2024-02-01 13:43:36 -08:00

45 lines
828 B
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
ATF_TESTS_SH= arp \
carp \
divert \
fibs \
fibs_test \
forward \
lpm \
output \
redirect
ATF_TESTS_PYTEST+= carp.py
ATF_TESTS_PYTEST+= igmp.py
TEST_METADATA.divert+= required_programs="python"
TEST_METADATA.forward+= required_programs="python"
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>