diff options
author | Vic (Chun-Ju) Yang <victoryang@chromium.org> | 2014-02-06 16:45:28 +0800 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-02-06 19:27:18 +0000 |
commit | 798df2a6d077cb973cb60c5401d0ec037006fe9a (patch) | |
tree | 0c92b15cb6967d26b456ae99d9c716ca2b813e23 /Makefile.rules | |
parent | 66eec4415a0cf8a74aa9dd26c957423b63681e6b (diff) | |
download | chrome-ec-798df2a6d077cb973cb60c5401d0ec037006fe9a.tar.gz |
Add presubmit check for unit test
This enforces that "make buildall" runs at least once after the last
file change.
TEST=Try to upload without running "make buildall"
TEST=Change a file without re-running "make buildall", and try to
upload.
BUG=None
BRANCH=None
Change-Id: Ia4abb3c0e17cf4d559975574f398d74c7986c89f
Signed-off-by: Vic (Chun-Ju) Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/185116
Reviewed-by: Dave Parker <dparker@chromium.org>
Diffstat (limited to 'Makefile.rules')
-rw-r--r-- | Makefile.rules | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile.rules b/Makefile.rules index 70b6e26147..8256b99106 100644 --- a/Makefile.rules +++ b/Makefile.rules @@ -67,6 +67,8 @@ targ_if_prog = $(if $(shell which $(1) 2>/dev/null),$(2),) all: $(out)/$(PROJECT).bin utils buildall: $(foreach b, $(boards), proj-$(b)) runtests + @touch .tests-passed + proj-%: @echo "======= building $*"; \ $(MAKE) --no-print-directory BOARD=$* V=$(V) |