From 97580e2ec99cd2f22632d09fa0ffaec699d9a272 Mon Sep 17 00:00:00 2001 From: Robert Brown <91291114+rjbrown2@users.noreply.github.com> Date: Thu, 19 Dec 2024 22:26:56 -0500 Subject: [PATCH] [#258] MCDC Test --- .github/workflows/mc_dc_coverage.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mc_dc_coverage.yml b/.github/workflows/mc_dc_coverage.yml index dab02f28..dd7a018e 100644 --- a/.github/workflows/mc_dc_coverage.yml +++ b/.github/workflows/mc_dc_coverage.yml @@ -87,12 +87,17 @@ jobs: - name: Run MC/DC Analysis run: | + echo "Setting up environment for MC/DC Checker..." + export PATH=/usr/lib/llvm-19/bin:$PATH + export LD_LIBRARY_PATH=/usr/lib/llvm-19/lib:$LD_LIBRARY_PATH + echo "Testing Clang bindings in mcdc-checker environment..." + python3 -c "import clang.cindex; print('Clang version:', clang.cindex.Config.library_path)" echo "Running mcdc-checker..." - export PATH=$PATH:$HOME/.local/bin mcdc-checker -a -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \ -I $GITHUB_WORKSPACE/include $(find $GITHUB_WORKSPACE/src -type f -name '*.c' | tr '\n' ' ') \ > $GITHUB_WORKSPACE/doc/coverage/mcdc_checker_output.log 2>&1 || true + - name: Display MC/DC Checker Output run: | echo "Displaying MC/DC Checker Output:"