From c3d3b59bd1d973376b424d7a87d93554f9ee86e8 Mon Sep 17 00:00:00 2001 From: Robert Brown <91291114+rjbrown2@users.noreply.github.com> Date: Thu, 19 Dec 2024 23:34:47 -0500 Subject: [PATCH] [#258] MCDC Cleanup --- .github/workflows/mc_dc_coverage.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/mc_dc_coverage.yml b/.github/workflows/mc_dc_coverage.yml index 5a66f928..37af17ed 100644 --- a/.github/workflows/mc_dc_coverage.yml +++ b/.github/workflows/mc_dc_coverage.yml @@ -87,8 +87,18 @@ jobs: - name: Run MC/DC Analysis run: | echo "Setting up environment for MC/DC Checker..." - export PATH=/usr/lib/llvm-19/bin:$PATH + export PATH=/usr/lib/llvm-19/bin:$HOME/.local/bin:$PATH export LD_LIBRARY_PATH=/usr/lib/llvm-19/lib:$LD_LIBRARY_PATH + export CC=/usr/lib/llvm-19/bin/clang + export CXX=/usr/lib/llvm-19/bin/clang++ + + echo "Verifying Clang bindings..." + python3 -c " + import clang.cindex as cindex + cindex.Config.set_library_file('/usr/lib/llvm-19/lib/libclang.so') + print('Clang library file configured:', cindex.Config.library_file) + " + echo "Running mcdc-checker..." mcdc-checker -a -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \ -I $GITHUB_WORKSPACE/include \ @@ -96,7 +106,6 @@ jobs: $(find $GITHUB_WORKSPACE/src -type f -name '*.c' | tr '\n' ' ') \ $(find $GITHUB_WORKSPACE/test -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:"