[coreboot-gerrit] Patch set updated for coreboot: WIP: what-jenkins-does: Save a list of files not tested if supported
Martin Roth (martinroth@google.com)
gerrit at coreboot.org
Thu Dec 29 08:55:03 CET 2016
Martin Roth (martinroth at google.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17892
-gerrit
commit aba30167f2a7e2fbdd318cd20e7bee3aabacd78f
Author: Martin Roth <martinroth at google.com>
Date: Thu Dec 15 08:20:00 2016 -0700
WIP: what-jenkins-does: Save a list of files not tested if supported
If the filesystem saves access times, generate a list of files that
were not used by the jenkins builds.
This helps to determine which files are getting build tested and which
are not.
Change-Id: I505efb8ff43baec5983eb234618d2268c062544e
Signed-off-by: Martin Roth <martinroth at google.com>
---
Makefile.inc | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/Makefile.inc b/Makefile.inc
index c5ce30f..e4150b1 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -1054,6 +1054,7 @@ JENKINS_PAYLOAD?=none
CPUS?=4
what-jenkins-does:
util/lint/lint lint-stable --junit
+ touch .timestamp
util/abuild/abuild -B -J $(if $(JENKINS_NOCCACHE),,-y) -c $(CPUS) -z -p $(JENKINS_PAYLOAD) -x -X $(top)/abuild-chromeos.xml
util/abuild/abuild -B -J $(if $(JENKINS_NOCCACHE),,-y) -c $(CPUS) -z -p $(JENKINS_PAYLOAD)
(cd payloads/libpayload; unset COREBOOT_BUILD_DIR; $(MAKE) $(if $(JENKINS_NOCCACHE),,CONFIG_LP_CCACHE=y) V=$(V) Q=$(Q) junit.xml)
@@ -1061,3 +1062,11 @@ what-jenkins-does:
$(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=payloads/ BLD=nvramcui MFLAGS= MAKEFLAGS= MAKETARGET=all junit.xml
$(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=payloads/ BLD=coreinfo MFLAGS= MAKEFLAGS= MAKETARGET=defaultbuild junit.xml
$(MAKE) CPUS=$(CPUS) V=$(V) Q=$(Q) BLD_DIR=util/ BLD=romcc MFLAGS= MAKEFLAGS= MAKETARGET=test junit.xml
+ UNTESTED_FILES="$${COREBOOT_BUILD_DIR:-coreboot-builds}/untested_files.txt"; \
+ if [ -n "$(find Makefile -type f -anewer .timestamp)" ]; then \
+ find . -type f ! -anewer .timestamp | sed 's|./||' | grep '^src/\|^util\|^payloads' | grep -v '^payloads/external' > "$$UNTESTED_FILES"; \
+ printf "%s untested files\n" "$$(wc -l < $$UNTESTED_FILES)"; \
+ else \
+ echo "Filesystem does not save file access times." > "$$UNTESTED_FILES"; \
+ fi
+ rm -f .timestamp
More information about the coreboot-gerrit
mailing list