From 81527127a9ea5e7db973329b59a5ef7234b05d26 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 20 Aug 2023 23:49:57 +0200 Subject: Remove the testsuite from the coverage data --- tests/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/Makefile b/tests/Makefile index 96dfe2d..bcce585 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -114,7 +114,8 @@ coverage: GCOV=../x86_64-linux-musl-native/bin/gcov coverage: $(TARGETS) run $(GCOV) *.c lcov --capture --directory . --output-file coverage.info - genhtml coverage.info --output-directory coverage + lcov --remove ./coverage.info "*/tests/*" --output-file cleaned-coverage.info + genhtml cleaned-coverage.info --output-directory coverage $(TARGETS): %: %.c $(CC) $(CFLAGS) -o $@ $< -- cgit v1.3