]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Helper script for running BPF presubmit tests
authorKP Singh <kpsingh@kernel.org>
Thu, 4 Feb 2021 19:45:43 +0000 (19:45 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 5 Feb 2021 00:03:16 +0000 (16:03 -0800)
commit344e65ded8b500f0b8235cd7ab94dca028db60a1
tree22cd6448525c24ea34a279cef003531db68b092a
parent136162d4b07987932536ae66b7441fc790bcff6b
bpf: Helper script for running BPF presubmit tests

The script runs the BPF selftests locally on the same kernel image
as they would run post submit in the BPF continuous integration
framework.

The goal of the script is to allow contributors to run selftests locally
in the same environment to check if their changes would end up breaking
the BPF CI and reduce the back-and-forth between the maintainers and the
developers.

Signed-off-by: KP Singh <kpsingh@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Tested-by: Jiri Olsa <jolsa@redhat.com>
Link: https://lore.kernel.org/bpf/20210204194544.3383814-2-kpsingh@kernel.org
tools/testing/selftests/bpf/vmtest.sh [new file with mode: 0755]