Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41771 )
Change subject: tests: Allow emitting junit output for unit tests ......................................................................
tests: Allow emitting junit output for unit tests
Change-Id: Iab0c4250b1baa77d4eab7538ec1fd3310f9e63e4 Signed-off-by: Patrick Georgi pgeorgi@google.com --- M tests/Makefile.inc 1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/41771/1
diff --git a/tests/Makefile.inc b/tests/Makefile.inc index f84fa30..2da29c3 100644 --- a/tests/Makefile.inc +++ b/tests/Makefile.inc @@ -135,7 +135,13 @@ .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