Skip to content

BPF selftest helper script

KP Singh bpf 5 versions – Applied

Status from this message: This series was applied to bpf/bpf-next.git (refs/heads/master):

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest2 patches 0 repliesApplied 2/2
  2. v42 patches 3 repliesSuperseded
  3. v32 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v22 patches14 repliesSuperseded
v11 patch2 repliesSuperseded

Patches in v5 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Helper script for running BPF presubmit teststools/testing/selftests/bpf/vmtest.sh+368 -00 repliesApplied
2/2bpf/selftests: Add a short note about vmtest.sh in README.rsttools/testing/selftests/bpf/README.rst+24 -00 repliesApplied

Reviews trailers per patch

None of the 2 patches has a Reviewed-by or Acked-by.

PatchJiri Olsa
1/2T-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH bpf-next v5 0/2] BPF selftest helper script
# v4 -> v5

- Use %Y (modification time) instead of %W (creation time) of the local copy of the kernel config to check for newer upstream config.
- Rename the script to vmtest.sh

# v3 -> v4

- Fix logic for updating kernel config to not download the file if there are no upstream modifications and avoid extraneous kernel compilation as suggested by Andrii.
- This also removes the need for the -k flag.

# v2 -> v3

- Fixes to silence verbose commands
- Fixed output buffering without being teed out
- Fixed the clobbered error code of the script
- Other fixes suggested by Andrii

# v1 -> v2

- The script now compiles the kernel by default, and the -k option implies "keep the kernel"
- Pointer to the script in the docs.
- Some minor simplifications.

Allow developers and contributors to understand if their changes would end up breaking the BPF CI and avoid the back and forth required for fixing the test cases in the CI environment. The se

KP Singh (2):
bpf: Helper script for running BPF presubmit tests bpf/selftests: Add a short note about vmtest.sh in README.rst

 tools/testing/selftests/bpf/README.rst |  24 ++
 tools/testing/selftests/bpf/vmtest.sh  | 368 +++++++++++++++++++++++++
 2 files changed, 392 insertions(+)
 create mode 100755 tools/testing/selftests/bpf/vmtest.sh
Signature · 1 line
2.30.0.365.g02bc693789-goog