Skip to content

Commit

Permalink
Add Makefile helpers for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed Jul 5, 2024
1 parent 04a9cae commit b431295
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,14 @@ coverage:
lcov --capture -d . --no-external -o coverage.info
genhtml coverage.info --output-directory coverage_html

clean_coverage:
find . -name "*.gcda" -type f -delete

coverage_functional:
rm -rf coverage.info coverage_html
lcov --capture -d backends/functional --no-external -o coverage.info
genhtml coverage.info --output-directory coverage_html

qtcreator:
{ for file in $(basename $(OBJS)); do \
for prefix in cc y l; do if [ -f $${file}.$${prefix} ]; then echo $$file.$${prefix}; fi; done \
Expand Down

0 comments on commit b431295

Please sign in to comment.