bpf.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next v5 0/2] BPF selftest helper script
@ 2021-02-04 19:45 KP Singh
  2021-02-04 19:45 ` [PATCH bpf-next v5 1/2] bpf: Helper script for running BPF presubmit tests KP Singh
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: KP Singh @ 2021-02-04 19:45 UTC (permalink / raw)
  To: bpf
  Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko,
	Florent Revest, Brendan Jackman

# 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

-- 
2.30.0.365.g02bc693789-goog


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

end of thread, other threads:[~2021-02-05  0:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 19:45 [PATCH bpf-next v5 0/2] BPF selftest helper script KP Singh
2021-02-04 19:45 ` [PATCH bpf-next v5 1/2] bpf: Helper script for running BPF presubmit tests KP Singh
2021-02-04 19:45 ` [PATCH bpf-next v5 2/2] bpf/selftests: Add a short note about vmtest.sh in README.rst KP Singh
2021-02-05  0:30 ` [PATCH bpf-next v5 0/2] BPF selftest helper script 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;
as well as URLs for NNTP newsgroup(s).