]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests/net: packetdrill: add minimal client and server tests
authorWillem de Bruijn <willemb@google.com>
Mon, 5 Jan 2026 17:25:02 +0000 (12:25 -0500)
committerJakub Kicinski <kuba@kernel.org>
Wed, 7 Jan 2026 01:38:26 +0000 (17:38 -0800)
commit3b7a108c4197f9fd0b593c6b4b0de457d9ed4c87
tree17e7265906f282d344d3d6cfbd7b97b1012a2030
parent55ffb0b14a4d310390ea2dd5a92e6d2e5c80d0ef
selftests/net: packetdrill: add minimal client and server tests

Introduce minimal tests. These can serve as simple illustrative
examples, and as templates when writing new tests.

When adding new cases, it can be easier to extend an existing base
test rather than start from scratch. The existing tests all focus on
real, often non-trivial, features. It is not obvious which to take as
starting point, and arguably none really qualify.

Add two tests
- the client test performs the active open and initial close
- the server test implements the passive open and final close

Signed-off-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20260105172529.3514786-1-willemdebruijn.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
tools/testing/selftests/net/packetdrill/tcp_basic_client.pkt [new file with mode: 0644]
tools/testing/selftests/net/packetdrill/tcp_basic_server.pkt [new file with mode: 0644]