linux/tools/testing/selftests/net/lib
Jakub Kicinski e46ff213f7 selftests: net: py: add test case filtering and listing
When developing new test cases and reproducing failures in
existing ones we currently have to run the entire test which
can take minutes to finish.

Add command line options for test selection, modeled after
kselftest_harness.h:

  -l       list tests (filtered, if filters were specified)
  -t name  include test
  -T name  exclude test

Since we don't have as clean separation into fixture / variant /
test as kselftest_harness this is not really a 1 to 1 match.
We have to lean on glob patterns instead.

Like in kselftest_harness filters are evaluated in order, first
match wins. If only exclusions are specified everything else is
included and vice versa.

Glob patterns (*, ?, [) are supported in addition to exact
matching.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Tested-by: Gal Pressman <gal@nvidia.com>
Reviewed-by: Breno Leitao <leitao@debian.org>
Link: https://patch.msgid.link/20260410013921.1710295-1-kuba@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-04-12 09:09:09 -07:00
..
py selftests: net: py: add test case filtering and listing 2026-04-12 09:09:09 -07:00
sh selftests: defer: Introduce DEFER_PAUSE_ON_FAIL 2025-09-11 19:02:51 -07:00
.gitignore selftests: net: move gro to lib for HW vs SW reuse 2026-03-19 16:57:28 -07:00
csum.c selftests: net: csum: Fix printk format in recv_get_packet_csum_status() 2026-01-19 10:09:47 -08:00
gro.c selftests: drv-net: gro: add a test for bad IPv4 csum 2026-04-03 15:05:45 -07:00
ksft_setup_loopback.sh selftests: net: remove old setup_* scripts 2025-11-20 18:19:31 -08:00
ksft.h selftests: net: Fix build warnings 2025-12-10 01:11:12 -08:00
Makefile selftests: net: move gro to lib for HW vs SW reuse 2026-03-19 16:57:28 -07:00
xdp_dummy.bpf.c selftests: drv-net: add xdp cases for ping.py 2025-03-10 13:31:12 -07:00
xdp_helper.c selftests: net: retry when bind returns EBUSY in xdp_helper 2025-04-28 15:49:10 -07:00
xdp_metadata.bpf.c selftests: drv-net: xdp: Add rss_hash metadata tests 2026-03-29 14:09:08 -07:00
xdp_native.bpf.c selftests: drv-net: xdp: Fix register spill error with clang 20 2025-11-14 17:45:07 -08:00