summaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorJakub Czapiga <jacz@semihalf.com>2022-09-06 10:42:16 +0200
committerPatrick Georgi <patrick@coreboot.org>2022-09-21 14:06:42 +0000
commita0e36d8cbaad6ead0102721fdedb3b4c50f0273c (patch)
tree6c62d045a8992ac1b786cf2be09c6560d6a61cae /util
parentb525ea726b257ca6b4e03f4f4427f92046722e26 (diff)
downloadcoreboot-a0e36d8cbaad6ead0102721fdedb3b4c50f0273c.tar.gz
coreboot-a0e36d8cbaad6ead0102721fdedb3b4c50f0273c.tar.bz2
coreboot-a0e36d8cbaad6ead0102721fdedb3b4c50f0273c.zip
tests: Add support for tests build failures detection
This patch introduces new target: junit.xml-unit-tests, which builds and runs unit-tests. It also creates build log containing build logs. This feature allows for one to see build failures in Jenkins dashboard. Signed-off-by: Jakub Czapiga <jacz@semihalf.com> Change-Id: I94184379dcc2ac10f1a47f4a9d205cacbeb640fe Reviewed-on: https://review.coreboot.org/c/coreboot/+/67372 Reviewed-by: Julius Werner <jwerner@chromium.org> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'util')
-rw-r--r--util/testing/Makefile.inc7
1 files changed, 4 insertions, 3 deletions
diff --git a/util/testing/Makefile.inc b/util/testing/Makefile.inc
index df6a25ef94b9..d9bc83fe486f 100644
--- a/util/testing/Makefile.inc
+++ b/util/testing/Makefile.inc
@@ -104,9 +104,10 @@ 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 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
+ +$(MAKE) junit.xml-unit-tests COV=1
+ +(cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) junit.xml-unit-tests COV=1)
+ +(cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) coverage-report COV=1)
+ +$(MAKE) coverage-report JUNIT_OUTPUT=y COV=1
find . -name 'tests.info' -exec cat {} + >$(COREBOOT_BUILD_DIR)/coverage.info
test-basic: test-lint test-tools test-abuild test-payloads test-cleanup