Skip to content

Commit

Permalink
Modify build script to run unit tests
Browse files Browse the repository at this point in the history
Run unit tests after the build process completes successfully in
build.sh.

Signed-off-by: Konstantin Ilichev <[email protected]>
  • Loading branch information
ko80 committed Oct 7, 2024
1 parent 7394340 commit 7f8ac2f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 7f8ac2f

Please sign in to comment.