]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: add selftest that use test_libbpf_open
authorJesper Dangaard Brouer <brouer@redhat.com>
Thu, 8 Feb 2018 11:48:27 +0000 (12:48 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 8 Feb 2018 23:25:12 +0000 (00:25 +0100)
commit1270b4d750bbdade9e6cddabf9c44113edffc79a
tree91b16d7227e33007319adfed253b945425a1dbec
parent101319746bed77e58cad72dfbf4d75eab8d5ae44
selftests/bpf: add selftest that use test_libbpf_open

This script test_libbpf.sh will be part of the 'make run_tests'
invocation, but can also be invoked manually in this directory,
and a verbose mode can be enabled via setting the environment
variable $VERBOSE like:

 $ VERBOSE=yes ./test_libbpf.sh

The script contains some tests that are commented out, as they
currently fail.  They are reminders about what we need to improve
for the libbpf loader library.

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_libbpf.sh [new file with mode: 0755]