Skip to content

Commit c51bb6a

Browse files
committed
unit-tests: exclude keytools from coverage
1 parent 399e875 commit c51bb6a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/unit-tests/Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,11 @@ include unit-sign-encrypted-output.mkfrag
5959
all: $(TESTS)
6060

6161
cov:
62+
rm -f unit-sign-encrypted-output-*
6263
gcovr -f "^\.\.\/\.\.\/src.*\.c" -r ../.. --verbose \
64+
--exclude-directories 'tools/keytools$$' \
65+
--gcov-exclude '.*tools/keytools/.*' \
66+
--gcov-exclude '.*unit-sign-encrypted-output-.*' \
6367
--merge-mode-functions merge-use-line-0 \
6468
--html-medium-threshold 60 \
6569
--html-high-threshold 80 \
@@ -316,6 +320,7 @@ unit-multiboot: unit-multiboot.c
316320

317321
covclean:
318322
rm -f *.gcov *.gcno *.gcda coverage.*
323+
rm -f unit-sign-encrypted-output-*
319324

320325
clean: covclean
321326
rm -f $(TESTS) *.o *.gcno *.gcda coverage.*

0 commit comments

Comments
 (0)