From 7f8ac2fc76b7c18b96a738904789284dcd326e0c Mon Sep 17 00:00:00 2001 From: Konstantin Ilichev Date: Sun, 6 Oct 2024 21:57:48 +0000 Subject: [PATCH] Modify build script to run unit tests Run unit tests after the build process completes successfully in build.sh. Signed-off-by: Konstantin Ilichev --- build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/build.sh b/build.sh index 9b13b88b..a866579b 100755 --- a/build.sh +++ b/build.sh @@ -23,3 +23,6 @@ cmake --build "${SCRIPT_DIR}/out" -j # Install run_as_root_user cmake --install "${SCRIPT_DIR}/out" run_as_root_user ln -s /usr/lib64/libbpf.so.1 /usr/lib/x86_64-linux-gnu/libbpf.so.1 2>/dev/null || true + +# Run unit tests +LD_LIBRARY_PATH="${PREFIX_DIR}/usr/local/lib:/usr/local/lib" "${SCRIPT_DIR}/out/bin/mcm_unit_tests"