[coreboot-gerrit] Patch set updated for coreboot: 66da81d libpayload: add junit.xml build target
Patrick Georgi (patrick@georgi-clan.de)
gerrit at coreboot.org
Sun Dec 22 00:15:36 CET 2013
Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/4551
-gerrit
commit 66da81de06e7623bc8ff8e417245e07aa618b7fc
Author: Patrick Georgi <patrick at georgi-clan.de>
Date: Sat Dec 21 21:08:53 2013 +0100
libpayload: add junit.xml build target
It builds all defconfigs/* and logs the results
in junit.xml, suitable for consumption by jenkins
Change-Id: I86c4022851b47820c95359b2ea9b735a77b1bc2c
Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
payloads/libpayload/Makefile.inc | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/payloads/libpayload/Makefile.inc b/payloads/libpayload/Makefile.inc
index 8961dd6..ea1bcff 100644
--- a/payloads/libpayload/Makefile.inc
+++ b/payloads/libpayload/Makefile.inc
@@ -117,3 +117,25 @@ clean-for-update-target:
clean-target:
prepare:
+
+junit.xml:
+ echo '<?xml version="1.0" encoding="utf-8"?><testsuite>' > $@.tmp
+ for i in $(filter-out %.old,$(wildcard configs/*)); do \
+ $(MAKE) clean; \
+ yes | $(MAKE) oldconfig DOTCONFIG=$$i 2>/dev/null >/dev/null; \
+ echo "<testcase classname='libpayload' name='$$i'>" >> $@.tmp; \
+ $(MAKE) CONFIG_CCACHE=$(CONFIG_CCACHE) DOTCONFIG=$$i >> $@.tmp.2 2>&1 && type="system-out" || type="failure"; \
+ if [ $$type = "failure" ]; then \
+ echo "<failure type='buildFailed'>" >> $@.tmp; \
+ else \
+ echo "<$$type>" >> $@.tmp; \
+ fi; \
+ echo '<![CDATA[' >> $@.tmp; \
+ cat $@.tmp.2 >> $@.tmp; \
+ echo "]]></$$type>" >>$@.tmp; \
+ rm -f $@.tmp.2; \
+ echo "</testcase>" >> $@.tmp; \
+ done
+ echo "</testsuite>" >> $@.tmp
+ mv $@.tmp $@
+
More information about the coreboot-gerrit
mailing list