OSDN Git Service

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)
commitc9709f52386d9cc944417f45b979d821d1d08c46
tree22cd6448525c24ea34a279cef003531db68b092a
parent4c5de127598e1b725aa3a5e38ac711472566ca60
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]