Skip to content

Commit 8d368f0

Browse files
authored
[#258] MCDC Test
1 parent 7e6a300 commit 8d368f0

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/mc_dc_coverage.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,26 +95,27 @@ jobs:
9595
export LD_LIBRARY_PATH=/usr/lib/llvm-19/lib:$LD_LIBRARY_PATH
9696
export CC=/usr/lib/llvm-19/bin/clang
9797
export CXX=/usr/lib/llvm-19/bin/clang++
98-
98+
9999
echo "Verifying Clang bindings..."
100100
python3 -c "
101101
import clang.cindex as cindex
102102
cindex.Config.set_library_file('/usr/lib/llvm-19/lib/libclang.so')
103-
print('Clang library file configured:', cindex.Config.library_path)
103+
print('Clang library file configured:', cindex.Config.library_file)
104104
"
105105
106106
echo "Testing Clang version in checker environment..."
107107
clang --version || { echo 'Clang not found'; exit 1; }
108108

109-
echo "Running mcdc-checker..."
110-
mcdc-checker -a -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \
109+
echo "Running mcdc-checker with debug logs..."
110+
mcdc-checker -a -d -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \
111111
-I $GITHUB_WORKSPACE/include $(find $GITHUB_WORKSPACE/src -type f -name '*.c' | tr '\n' ' ') \
112112
> $GITHUB_WORKSPACE/doc/coverage/mcdc_checker_output.log 2>&1 || true
113113

114114
echo "Displaying MC/DC Checker Output:"
115115
cat $GITHUB_WORKSPACE/doc/coverage/mcdc_checker_output.log
116116

117117

118+
118119
- name: Display MC/DC Checker Output
119120
run: |
120121
echo "Displaying MC/DC Checker Output:"

0 commit comments

Comments
 (0)