From 9ceb72e4072e7c24e2c0abc0ba429da190b57fb8 Mon Sep 17 00:00:00 2001 From: Stewart Smith Date: Fri, 19 Dec 2014 14:37:04 +1100 Subject: Exclude all test cases from coverage-report This way we get a true representation from the lcov coverage-report about what firmware code we're testing (besides, test cases are always going to only have 50% of branches hit - we're asserting the tests pass!) Signed-off-by: Stewart Smith --- core/test/Makefile.check | 2 ++ hw/ipmi/test/Makefile.check | 2 ++ libc/test/Makefile.check | 2 ++ libflash/test/Makefile.check | 2 ++ 4 files changed, 8 insertions(+) diff --git a/core/test/Makefile.check b/core/test/Makefile.check index f3f35d5..82c0b04 100644 --- a/core/test/Makefile.check +++ b/core/test/Makefile.check @@ -1,6 +1,8 @@ # -*-Makefile-*- CORE_TEST := core/test/run-device core/test/run-mem_region core/test/run-malloc core/test/run-malloc-speed core/test/run-mem_region_init core/test/run-mem_region_release_unused core/test/run-mem_region_release_unused_noalloc core/test/run-trace core/test/run-msg core/test/run-pel core/test/run-pool core/test/run-timer +LCOV_EXCLUDE += $(CORE_TEST:%=%.c) core/test/stubs.c + check: $(CORE_TEST:%=%-check) $(CORE_TEST:%=%-gcov-run) coverage: $(CORE_TEST:%=%-gcov-run) diff --git a/hw/ipmi/test/Makefile.check b/hw/ipmi/test/Makefile.check index 05fb903..0669b3e 100644 --- a/hw/ipmi/test/Makefile.check +++ b/hw/ipmi/test/Makefile.check @@ -1,6 +1,8 @@ # -*-Makefile-*- IPMI_TEST := hw/ipmi/test/run-fru +LCOV_EXCLUDE += $(IPMI_TEST:%=%.c) + check: $(IPMI_TEST:%=%-check) $(IPMI_TEST:%=%-gcov-run) coverage: $(IPMI_TEST:%=%-gcov-run) diff --git a/libc/test/Makefile.check b/libc/test/Makefile.check index 18bc3b4..d4efaf3 100644 --- a/libc/test/Makefile.check +++ b/libc/test/Makefile.check @@ -1,6 +1,8 @@ # -*-Makefile-*- LIBC_TEST := libc/test/run-time +LCOV_EXCLUDE += $(LIBC_TEST:%=%.c) + check: $(LIBC_TEST:%=%-check) coverage: $(LIBC_TEST:%=%-gcov-run) diff --git a/libflash/test/Makefile.check b/libflash/test/Makefile.check index 8385e8a..5d32a41 100644 --- a/libflash/test/Makefile.check +++ b/libflash/test/Makefile.check @@ -1,6 +1,8 @@ # -*-Makefile-*- LIBFLASH_TEST := libflash/test/test-flash +LCOV_EXCLUDE += $(LIBFLASH_TEST:%=%.c) + check: $(LIBFLASH_TEST:%=%-check) $(CORE_TEST:%=%-gcov-run) coverage: $(LIBFLASH_TEST:%=%-gcov-run) -- cgit v1.1