mbox series

[v3,bpf-next,0/4] selftests/bpf: Improve the usability of test_progs

Message ID 20210810212107.2237868-1-fallentree@fb.com (mailing list archive)
Headers show
Series selftests/bpf: Improve the usability of test_progs | expand

Message

Yucong Sun Aug. 10, 2021, 9:21 p.m. UTC
This short series adds two new "-a", "-d" switch to test_progs,
supporting exact string match, as well as '*' wildchar. It also cleans
up the output to make it possible to generate allowlist/denylist using
grep.

Yucong Sun (4):
  selftests/bpf: skip loading bpf_testmod when using -l to list tests.
  selftests/bpf: correctly display subtest skip status
  selftests/bpf: Support glob matching for test selector.
  selftests/bpf: also print test name in subtest status message

 tools/testing/selftests/bpf/test_progs.c | 100 +++++++++++++++++------
 tools/testing/selftests/bpf/test_progs.h |   1 +
 2 files changed, 78 insertions(+), 23 deletions(-)