Add Makefile helpers for coverage

This commit is contained in:
Miodrag Milanovic 2024-07-05 14:50:00 +02:00 committed by Emily Schmidt
parent 57af68af96
commit e296b884d5
1 changed files with 8 additions and 0 deletions

View File

@ -1047,6 +1047,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:
echo "$(CXXFLAGS)" | grep -o '\-D[^ ]*' | tr ' ' '\n' | sed 's/-D/#define /' | sed 's/=/ /'> qtcreator.config
{ for file in $(basename $(OBJS)); do \