diff options
author | Paul Fagerburg <pfagerburg@google.com> | 2021-10-26 13:21:37 -0600 |
---|---|---|
committer | Martin Roth <martinroth@google.com> | 2021-11-04 20:34:53 +0000 |
commit | 5d4f0838d6fe4f28e98701ae96fa4f4fcbbfd177 (patch) | |
tree | ef0eaf261e6b1620270c6da6b7a806ddfec7042f /util/testing | |
parent | 32d09be655465879fa4ca3f68102af778e69539e (diff) |
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.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc index a9fd6488cc..4de3307b47 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 |