From e296b884d5c1ddc610bb4ab916da4447ceb6d502 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 1feeeab95..2bbb0dc5b 100644 --- a/Makefile +++ b/Makefile @@ -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 \