Skip to content

Commit

Permalink
[#258] MCDC Test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbrown2 authored Dec 20, 2024
1 parent 7f917a1 commit 97580e2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/mc_dc_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
Expand Down

0 comments on commit 97580e2

Please sign in to comment.