summaryrefslogtreecommitdiffstats
path: root/util/testing
diff options
context:
space:
mode:
authorPaul Fagerburg <pfagerburg@google.com>2021-10-26 13:21:37 -0600
committerMartin Roth <martinroth@google.com>2021-11-04 20:34:53 +0000
commit5d4f0838d6fe4f28e98701ae96fa4f4fcbbfd177 (patch)
treeef0eaf261e6b1620270c6da6b7a806ddfec7042f /util/testing
parent32d09be655465879fa4ca3f68102af778e69539e (diff)
downloadcoreboot-5d4f0838d6fe4f28e98701ae96fa4f4fcbbfd177.tar.gz
coreboot-5d4f0838d6fe4f28e98701ae96fa4f4fcbbfd177.tar.bz2
coreboot-5d4f0838d6fe4f28e98701ae96fa4f4fcbbfd177.zip
util/testing: add code coverage to jenkins
Add COV=1 and the `coverage-report` target to unit test build rules in `what-jenkins-does` so that we get code coverage data from the coreboot and libpayload unit tests. Signed-off-by: Paul Fagerburg <pfagerburg@google.com> Change-Id: I96669c47d1a48e9ab678a4b9cb1d0c8032d727f0 Reviewed-on: https://review.coreboot.org/c/coreboot/+/58634 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'util/testing')
-rw-r--r--util/testing/Makefile.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc
index a9fd6488cc15..4de3307b47c9 100644
--- a/util/testing/Makefile.inc
+++ b/util/testing/Makefile.inc
@@ -96,8 +96,9 @@ endif
$(MAKE) xcompile=$(COREBOOT_BUILD_DIR)/xcompile $(COREBOOT_BUILD_DIR)/xcompile
$(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=src/soc/nvidia/tegra124/lp0 BLD=tegra124_lp0 MFLAGS= MAKEFLAGS=xcompile=$(COREBOOT_BUILD_DIR)/xcompile MAKETARGET=all junit.xml
$(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=src/soc/nvidia/tegra210/lp0 BLD=tegra120_lp0 MFLAGS= MAKEFLAGS=xcompile=$(COREBOOT_BUILD_DIR)/xcompile MAKETARGET=all junit.xml
- $(MAKE) unit-tests JUNIT_OUTPUT=y
- (cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) unit-tests JUNIT_OUTPUT=y)
+ $(MAKE) unit-tests JUNIT_OUTPUT=y COV=1
+ (cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) unit-tests coverage-report JUNIT_OUTPUT=y COV=1)
+ $(MAKE) coverage-report JUNIT_OUTPUT=y COV=1
test-basic: test-lint test-tools test-abuild test-payloads test-cleanup