selftests/bpf: Test libbpf_{prog,attach}_type_by_name
authorAndrey Ignatov <rdna@fb.com>
Wed, 26 Sep 2018 22:24:57 +0000 (15:24 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 27 Sep 2018 19:14:59 +0000 (21:14 +0200)
commit370920c47b26ae3a837f7c46f0795804ae2940f7
treee906592468b388ae703879244a33a80259e0c4b1
parentc9bf507d0acba950e5d85ef27727ce61458ef5aa
selftests/bpf: Test libbpf_{prog,attach}_type_by_name

Add selftest for libbpf functions libbpf_prog_type_by_name and
libbpf_attach_type_by_name.

Example of output:
  % ./tools/testing/selftests/bpf/test_section_names
  Summary: 35 PASSED, 0 FAILED

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_section_names.c [new file with mode: 0644]