]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: Bring back c++ include/link test
authorStanislav Fomichev <sdf@google.com>
Mon, 2 Dec 2019 21:59:31 +0000 (13:59 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 5 Dec 2019 01:57:55 +0000 (17:57 -0800)
commit899cdac58d00595458a272793bb8df54d8e4e503
tree409a3af52c0fd0670c0bbae50df63d5ca1f8e577
parentd09aa6bdb7c7f4028a8d14f9d236ec2a0b42aad8
selftests/bpf: Bring back c++ include/link test

Commit 5b79b016355f ("libbpf: Don't use cxx to test_libpf target")
converted existing c++ test to c. We still want to include and
link against libbpf from c++ code, so reinstate this test back,
this time in a form of a selftest with a clear comment about
its purpose.

v2:
* -lelf -> $(LDLIBS) (Andrii Nakryiko)

Fixes: 5b79b016355f ("libbpf: Don't use cxx to test_libpf target")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20191202215931.248178-1-sdf@google.com
tools/lib/bpf/.gitignore
tools/lib/bpf/Makefile
tools/lib/bpf/test_libbpf.c [deleted file]
tools/testing/selftests/bpf/.gitignore
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_cpp.cpp [new file with mode: 0644]