diff options
author | Patrick Georgi <pgeorgi@google.com> | 2020-05-27 10:59:09 +0200 |
---|---|---|
committer | Patrick Georgi <pgeorgi@google.com> | 2020-05-28 09:47:44 +0000 |
commit | a0a198f7792e1c3eead192f73abf2d75fa723936 (patch) | |
tree | 9bdeda2755687bc848055d71f077bbd029a89050 /tests | |
parent | a3402973abcc7bfee513ebf9bb58f3d9a4d18225 (diff) | |
download | coreboot-a0a198f7792e1c3eead192f73abf2d75fa723936.tar.gz coreboot-a0a198f7792e1c3eead192f73abf2d75fa723936.tar.bz2 coreboot-a0a198f7792e1c3eead192f73abf2d75fa723936.zip |
tests: Allow emitting junit output for unit tests
Change-Id: Iab0c4250b1baa77d4eab7538ec1fd3310f9e63e4
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/41771
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Martin Roth <martinroth@google.com>
Reviewed-by: Angel Pons <th3fanbus@gmail.com>
Reviewed-by: Jan Dabros <jsd@semihalf.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.inc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/Makefile.inc b/tests/Makefile.inc index f84fa30d5249..2da29c376891 100644 --- a/tests/Makefile.inc +++ b/tests/Makefile.inc @@ -135,7 +135,13 @@ $(TEST_KCONFIG_AUTOCONFIG): $(TEST_KCONFIG_AUTOHEADER) .PHONY: $(alltests) $(addprefix clean-,$(alltests)) .PHONY: unit-tests build-unit-tests run-unit-tests clean-unit-tests +ifeq ($(JUNIT_OUTPUT),y) +$(alltests): export CMOCKA_MESSAGE_OUTPUT=xml +$(alltests): export CMOCKA_XML_FILE=$(testobj)/junit-$(subst /,_,$^).xml +endif + $(alltests): $$($$(@)-bin) + rm -f $(testobj)/junit-$(subst /,_,$^).xml ./$^ unit-tests: build-unit-tests run-unit-tests |