Add a test step to produce a minimal binary using libbpf.

This patch adds a test step to link a minimal program to libbpf library produced,
making sure that the library works.
This commit is contained in:
Yucong Sun
2021-08-04 12:38:18 -07:00
committed by Andrii Nakryiko
parent 70ad3e8314
commit 6bf8babb33
3 changed files with 19 additions and 3 deletions

View File

@@ -20,4 +20,4 @@ if ! ldd build/libbpf.so | grep -q libelf; then
exit 1
fi
make -j$((4*$(nproc))) -C src OBJDIR=../build DESTDIR=../install install
rm -rf build install
CFLAGS=${CFLAGS} $(dirname $0)/test_compile.sh