The Linux Kernel Mailing List
 help / color / mirror / Atom feed
* [PATCH bpf-next v4 0/3] selftests/bpf: migrate a few bpftool testing scripts
@ 2026-01-23  8:30 Alexis Lothoré (eBPF Foundation)
  2026-01-23  8:30 ` [PATCH bpf-next v4 1/3] bpf/selftests: add a few helpers for bpftool testing Alexis Lothoré (eBPF Foundation)
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Alexis Lothoré (eBPF Foundation) @ 2026-01-23  8:30 UTC (permalink / raw)
  To: Andrii Nakryiko, Eduard Zingerman, Alexei Starovoitov,
	Daniel Borkmann, Martin KaFai Lau, Song Liu, Yonghong Song,
	John Fastabend, KP Singh, Stanislav Fomichev, Hao Luo, Jiri Olsa,
	Shuah Khan, Quentin Monnet
  Cc: ebpf, Bastien Curutchet, Thomas Petazzoni, linux-kernel, bpf,
	linux-kselftest, Alexis Lothoré (eBPF Foundation)

Hello,
this is the v4 for some bpftool tests conversion. The new tests are
being integrated in test_progs so that they can be executed on each CI
run.

- First commit introduces a few dedicated helpers to execute bpftool
  commands, with or without retrieving the generated stdout output
- Second commit integrates test_bpftool_metadata.sh into test_progs
- Third commit integrates test_bpftool_map.sh into test_progs

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
---
Changes in v4:
- Port missing map access test in bpftool_metadata
- Link to v3: https://lore.kernel.org/r/20260121-bpftool-tests-v3-0-368632f377e5@bootlin.com

Changes in v3:
- Drop commit reordering objects in Makefile
- Rebased series on ci/bpf-next_base to fix conflict
- Link to v2: https://lore.kernel.org/r/20260121-bpftool-tests-v2-0-64edb47e91ae@bootlin.com

Changes in v2:
- drop standalone runner in favor of test_progs
- Link to v1: https://lore.kernel.org/r/20260114-bpftool-tests-v1-0-cfab1cc9beaf@bootlin.com

---
Alexis Lothoré (eBPF Foundation) (3):
      bpf/selftests: add a few helpers for bpftool testing
      selftests/bpf: convert test_bpftool_metadata.sh into test_progs framework
      selftests/bpf: convert test_bpftool_map_access.sh into test_progs framework

 tools/testing/selftests/bpf/Makefile               |   5 +-
 tools/testing/selftests/bpf/bpftool_helpers.c      |  74 ++++
 tools/testing/selftests/bpf/bpftool_helpers.h      |  11 +
 .../selftests/bpf/prog_tests/bpftool_maps_access.c | 371 +++++++++++++++++++
 .../selftests/bpf/prog_tests/bpftool_metadata.c    | 144 ++++++++
 tools/testing/selftests/bpf/test_bpftool_map.sh    | 398 ---------------------
 .../testing/selftests/bpf/test_bpftool_metadata.sh |  85 -----
 7 files changed, 602 insertions(+), 486 deletions(-)
---
base-commit: 5f0eb131037251b80c9a92af28c6be8f65d063d2
change-id: 20251212-bpftool-tests-bb165c4cceb8

Best regards,
-- 
Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-01-27  3:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-23  8:30 [PATCH bpf-next v4 0/3] selftests/bpf: migrate a few bpftool testing scripts Alexis Lothoré (eBPF Foundation)
2026-01-23  8:30 ` [PATCH bpf-next v4 1/3] bpf/selftests: add a few helpers for bpftool testing Alexis Lothoré (eBPF Foundation)
2026-01-23  8:30 ` [PATCH bpf-next v4 2/3] selftests/bpf: convert test_bpftool_metadata.sh into test_progs framework Alexis Lothoré (eBPF Foundation)
2026-01-23  8:30 ` [PATCH bpf-next v4 3/3] selftests/bpf: convert test_bpftool_map_access.sh " Alexis Lothoré (eBPF Foundation)
2026-01-27  3:00 ` [PATCH bpf-next v4 0/3] selftests/bpf: migrate a few bpftool testing scripts patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox