-
- Downloads
bpf: add initial suite for selftests
Add a start of a test suite for kernel selftests. This moves test_verifier and test_maps over to tools/testing/selftests/bpf/ along with various code improvements and also adds a script for invoking test_bpf module. The test suite can simply be run via selftest framework, f.e.: # cd tools/testing/selftests/bpf/ # make # make run_tests Both test_verifier and test_maps were kind of misplaced in samples/bpf/ directory and we were looking into adding them to selftests for a while now, so it can be picked up by kbuild bot et al and hopefully also get more exposure and thus new test case additions. Signed-off-by:Daniel Borkmann <daniel@iogearbox.net> Acked-by:
Alexei Starovoitov <ast@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- MAINTAINERS 2 additions, 1 deletionMAINTAINERS
- samples/bpf/Makefile 0 additions, 3 deletionssamples/bpf/Makefile
- tools/include/linux/filter.h 24 additions, 0 deletionstools/include/linux/filter.h
- tools/testing/selftests/Makefile 2 additions, 1 deletiontools/testing/selftests/Makefile
- tools/testing/selftests/bpf/.gitignore 2 additions, 0 deletionstools/testing/selftests/bpf/.gitignore
- tools/testing/selftests/bpf/Makefile 13 additions, 0 deletionstools/testing/selftests/bpf/Makefile
- tools/testing/selftests/bpf/bpf_sys.h 108 additions, 0 deletionstools/testing/selftests/bpf/bpf_sys.h
- tools/testing/selftests/bpf/config 5 additions, 0 deletionstools/testing/selftests/bpf/config
- tools/testing/selftests/bpf/test_kmod.sh 39 additions, 0 deletionstools/testing/selftests/bpf/test_kmod.sh
- tools/testing/selftests/bpf/test_maps.c 525 additions, 0 deletionstools/testing/selftests/bpf/test_maps.c
- tools/testing/selftests/bpf/test_verifier.c 376 additions, 257 deletionstools/testing/selftests/bpf/test_verifier.c
Loading
Please register or sign in to comment