From b431295069014ce75f31c6dc0405568e753d165b Mon Sep 17 00:00:00 2001 From: Miodrag Milanovic Date: Fri, 5 Jul 2024 14:50:00 +0200 Subject: [PATCH] Add Makefile helpers for coverage --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index 64122624722..708efa9ecca 100644 --- a/Makefile +++ b/Makefile @@ -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 \