fix: include monolithic test binaries in code coverage

This commit is contained in:
Marcus Holland-Moritz 2025-04-27 23:24:49 +02:00
parent f410b8fa1a
commit 7cb3b8dc17

View File

@ -399,7 +399,7 @@ if [[ "-$BUILD_TYPE-" == *-coverage-* ]]; then
rm -f /tmp-runner/dwarfs-coverage.txt
llvm-profdata$CLANG_VERSION merge -sparse profile/* -o dwarfs.profdata
llvm-cov$CLANG_VERSION show -instr-profile=dwarfs.profdata \
$(for i in mkdwarfs dwarfs dwarfsck dwarfsextract *_test ricepp/ricepp_test; do echo $i; done | sed -e's/^/-object=/') \
$(for i in mkdwarfs dwarfs dwarfsck dwarfsextract *_test *_tests ricepp/ricepp_test; do echo $i; done | sed -e's/^/-object=/') \
>/tmp-runner/dwarfs-coverage.txt
fi