Skip to content

Commit b02556b

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

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

.github/workflows/mc_dc_coverage.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ jobs:
3939
wget https://apt.llvm.org/llvm.sh
4040
chmod +x llvm.sh
4141
./llvm.sh 19
42-
apt-get install -y clang-19 libclang-19-dev python3-clang
42+
apt-get install -y clang-19 libclang-19-dev python3-clang-19
43+
apt-get remove -y libclang-14-dev libclang-common-14-dev libclang1-14 libllvm14 python3-clang-14
4344
# Ensure Clang 19 is the default
4445
update-alternatives --install /usr/bin/clang clang /usr/lib/llvm-19/bin/clang 100
4546
update-alternatives --install /usr/bin/clang++ clang++ /usr/lib/llvm-19/bin/clang++ 100
4647
pipx install --system-site-packages mcdc-checker
47-
# Add pipx binary directory to PATH manually
48-
export PATH=$PATH:~/.local/bin
49-
echo $PATH
48+
pipx ensurepath
49+
5050
5151
- name: Verify Clang Installation
5252
run: |
@@ -103,11 +103,8 @@ jobs:
103103
print('Clang library file configured:', cindex.Config.library_file)
104104
"
105105
106-
echo "Testing Clang version in checker environment..."
107-
clang --version || { echo 'Clang not found'; exit 1; }
108-
109-
echo "Running mcdc-checker with debug logs..."
110-
mcdc-checker -a -d -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \
106+
echo "Running mcdc-checker..."
107+
mcdc-checker -a -j $GITHUB_WORKSPACE/doc/coverage/mcdc_report.json \
111108
-I $GITHUB_WORKSPACE/include $(find $GITHUB_WORKSPACE/src -type f -name '*.c' | tr '\n' ' ') \
112109
> $GITHUB_WORKSPACE/doc/coverage/mcdc_checker_output.log 2>&1 || true
113110

@@ -116,6 +113,7 @@ jobs:
116113

117114

118115

116+
119117
- name: Display MC/DC Checker Output
120118
run: |
121119
echo "Displaying MC/DC Checker Output:"

0 commit comments

Comments
 (0)