From: "Alexis Lothoré (eBPF Foundation)" <alexis.lothore@bootlin.com>
To: Andrii Nakryiko <andrii@kernel.org>,
Eduard Zingerman <eddyz87@gmail.com>,
Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Martin KaFai Lau <martin.lau@linux.dev>,
Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
John Fastabend <john.fastabend@gmail.com>,
KP Singh <kpsingh@kernel.org>,
Stanislav Fomichev <sdf@fomichev.me>,
Hao Luo <haoluo@google.com>, Jiri Olsa <jolsa@kernel.org>,
Shuah Khan <shuah@kernel.org>, Quentin Monnet <qmo@kernel.org>
Cc: ebpf@linuxfoundation.org,
"Bastien Curutchet" <bastien.curutchet@bootlin.com>,
"Thomas Petazzoni" <thomas.petazzoni@bootlin.com>,
linux-kernel@vger.kernel.org, bpf@vger.kernel.org,
linux-kselftest@vger.kernel.org,
"Alexis Lothoré (eBPF Foundation)" <alexis.lothore@bootlin.com>
Subject: [PATCH bpf-next v2 0/4] selftests/bpf: migrate a few bpftool testing scripts
Date: Wed, 21 Jan 2026 16:18:13 +0100 [thread overview]
Message-ID: <20260121-bpftool-tests-v2-0-64edb47e91ae@bootlin.com> (raw)
Hello,
this is the v2 for some bpftool tests conversion. This new version drops
a large part of the previous version, as it eventually integrates the
converted tests into test_progs rather than into a new dedicated runner.
The new tests however are almost identical to those in v1, as the
dropped test_bpftool runner was exposing the same kind of features as
those in test_progs.
- First commit is just a small cleanup, reordering files in the
selftests Makefile
- Second commit introduces a few dedicated helpers to execute bpftool
commands, with or without retrieving the generated stdout output
- Third commit integrates test_bpftool_metadata.sh into test_progs
- Fourth commit integrates test_bpftool_map.sh into test_progs
Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@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) (4):
selftests/bpf: reorder test_progs sources alphabetically
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 | 39 +-
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 | 134 +++++++
tools/testing/selftests/bpf/test_bpftool_map.sh | 398 ---------------------
.../testing/selftests/bpf/test_bpftool_metadata.sh | 85 -----
7 files changed, 609 insertions(+), 503 deletions(-)
---
base-commit: cb353e9f65bd5eb7025211f36bdab6c43d27f6f4
change-id: 20251212-bpftool-tests-bb165c4cceb8
Best regards,
--
Alexis Lothoré (eBPF Foundation) <alexis.lothore@bootlin.com>
next reply other threads:[~2026-01-21 15:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-21 15:18 Alexis Lothoré (eBPF Foundation) [this message]
2026-01-21 15:18 ` [PATCH bpf-next v2 1/4] selftests/bpf: reorder test_progs sources alphabetically Alexis Lothoré (eBPF Foundation)
2026-01-21 17:26 ` Alexei Starovoitov
2026-01-21 19:30 ` Alexis Lothoré
2026-01-21 15:18 ` [PATCH bpf-next v2 2/4] bpf/selftests: add a few helpers for bpftool testing Alexis Lothoré (eBPF Foundation)
2026-01-21 15:18 ` [PATCH bpf-next v2 3/4] selftests/bpf: convert test_bpftool_metadata.sh into test_progs framework Alexis Lothoré (eBPF Foundation)
2026-01-21 15:18 ` [PATCH bpf-next v2 4/4] selftests/bpf: convert test_bpftool_map_access.sh " Alexis Lothoré (eBPF Foundation)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260121-bpftool-tests-v2-0-64edb47e91ae@bootlin.com \
--to=alexis.lothore@bootlin.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bastien.curutchet@bootlin.com \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=ebpf@linuxfoundation.org \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=qmo@kernel.org \
--cc=sdf@fomichev.me \
--cc=shuah@kernel.org \
--cc=song@kernel.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox