Skip to content

Commit

Permalink
GHI #32 Check coverage for /include too
Browse files Browse the repository at this point in the history
  • Loading branch information
doodspav committed Jul 14, 2024
1 parent 0bf2442 commit bc5606a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,9 @@ jobs:
find ./test-coverage-internal -mindepth 1 -maxdepth 1 -type d -not -path '*/.*' -print0 | while IFS= read -r -d '' dir; do
mv "${dir}/patomic.lcov" "${dir}/patomic.lcov.old"
root_path=$(cat "${dir}/patomic.rootpath")
lcov --output-file "${dir}/patomic.lcov" --extract "${dir}/patomic.lcov.old" "${root_path}/patomic/src/*"
lcov --output-file "${dir}/patomic.lcov.include" --extract "${dir}/patomic.lcov.old" "${root_path}/patomic/include/*"
lcov --output-file "${dir}/patomic.lcov.src" --extract "${dir}/patomic.lcov.old" "${root_path}/patomic/src/*"
lcov --output-file "${dir}/patomic.lcov --add-tracefile "${dir}/patomic.lcov.include" --add-tracefile "${dir}/patomic.lcov.src"
done
# generate html files for each separate compilation
Expand Down

0 comments on commit bc5606a

Please sign in to comment.