Skip to content

Commit 1c7da35

Browse files
authored
[#258] MCDC Test
1 parent 3818e98 commit 1c7da35

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/mc_dc_coverage.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,18 +93,20 @@ jobs:
9393
echo "Setting up environment for MC/DC Checker..."
9494
export PATH=/usr/lib/llvm-19/bin:$HOME/.local/bin:$PATH
9595
export LD_LIBRARY_PATH=/usr/lib/llvm-19/lib:$LD_LIBRARY_PATH
96+
9697
echo "Configuring Clang library path for MC/DC Checker..."
9798
python3 -c "
9899
import clang.cindex as cindex
99-
cindex.Config.set_library_path('/usr/lib/llvm-19/lib')
100-
print('Clang library path configured:', cindex.Config.library_path)
100+
cindex.Config.set_library_file('/usr/lib/llvm-19/lib/libclang.so')
101+
print('Clang library file configured:', cindex.Config.library_path)
101102
"
103+
102104
echo "Running mcdc-checker..."
103105
mcdc-checker -a -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \
104106
-I $GITHUB_WORKSPACE/include $(find $GITHUB_WORKSPACE/src -type f -name '*.c' | tr '\n' ' ') \
105107
> $GITHUB_WORKSPACE/doc/coverage/mcdc_checker_output.log 2>&1 || true
106-
107-
108+
109+
echo "MC/DC Checker completed."
108110

109111
- name: Display MC/DC Checker Output
110112
run: |

0 commit comments

Comments
 (0)