From cb02cb70d8f881f02cb41a4ba722c00c84c07bf6 Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Sat, 25 Feb 2012 19:42:59 +0100 Subject: [PATCH] lint: create two classes of tests, stable and dev We have tests that pass (and should be enforced soonish) and those that don't pass yet (and thus shouldn't break the build). The plan is simple: As soon as a test passes, it's marked stable so things remain that way. "make lint" runs all tests, "make lint-stable" runs only those that shouldn't fail. Change-Id: Iaa85d71141606d9756e29b37c7a34c2a15e573ac Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/681 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- Makefile.inc | 6 +++--- ...uild-dir-handling => lint-stable-002-build-dir-handling} | 0 .../{lint-003-whitespace => lint-stable-003-whitespace} | 0 3 files changed, 3 insertions(+), 3 deletions(-) rename util/lint/{lint-002-build-dir-handling => lint-stable-002-build-dir-handling} (100%) rename util/lint/{lint-003-whitespace => lint-stable-003-whitespace} (100%) diff --git a/Makefile.inc b/Makefile.inc index e12cc9239..0f040e91b 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -34,7 +34,7 @@ coreboot: $(obj)/coreboot.rom ####################################################################### # our phony targets -PHONY+= clean-abuild coreboot +PHONY+= clean-abuild coreboot lint lint-stable ####################################################################### # root source directories of coreboot @@ -218,9 +218,9 @@ printcrt0s: update: dongle.py -c /dev/term/1 $(obj)/coreboot.rom EOF -lint: +lint lint-stable: FAILED=0; LINTLOG=`mktemp`; \ - for script in util/lint/lint-*; do \ + for script in util/lint/$@-*; do \ echo; echo `basename $$script`; \ grep "^# DESCR:" $$script | sed "s,.*DESCR: *,," ; \ echo ========; \ diff --git a/util/lint/lint-002-build-dir-handling b/util/lint/lint-stable-002-build-dir-handling similarity index 100% rename from util/lint/lint-002-build-dir-handling rename to util/lint/lint-stable-002-build-dir-handling diff --git a/util/lint/lint-003-whitespace b/util/lint/lint-stable-003-whitespace similarity index 100% rename from util/lint/lint-003-whitespace rename to util/lint/lint-stable-003-whitespace -- 2.25.1