summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Dabros <jsd@semihalf.com>2020-07-16 13:38:01 +0200
committerPatrick Georgi <pgeorgi@google.com>2020-07-26 21:11:05 +0000
commitffa58cfc1267bbc977c70fa7607520d35366de6d (patch)
tree0b55d4809a93c407972527e6915e541366e18262
parentb3b13efde6f7cb61fe7633f6957ae61dc1461a5d (diff)
util/lint: Add lint and checkpatch coverage for tests/ dir
Signed-off-by: Jan Dabros <jsd@semihalf.com> Change-Id: I8018b75844e630c9ed46c8bc48f2aa1634bf3369 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43511 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Julius Werner <jwerner@chromium.org> Reviewed-by: Paul Fagerburg <pfagerburg@chromium.org>
-rwxr-xr-xutil/lint/lint-007-checkpatch2
-rwxr-xr-xutil/lint/lint-stable-000-license-headers2
-rwxr-xr-xutil/lint/lint-stable-003-whitespace2
-rwxr-xr-xutil/lint/lint-stable-009-old-licenses2
-rwxr-xr-xutil/lint/lint-stable-012-executable-bit2
5 files changed, 5 insertions, 5 deletions
diff --git a/util/lint/lint-007-checkpatch b/util/lint/lint-007-checkpatch
index f78454198f..bc34e6bb4f 100755
--- a/util/lint/lint-007-checkpatch
+++ b/util/lint/lint-007-checkpatch
@@ -22,7 +22,7 @@ opts="--max-line-length 96"
# default: test src and util
if [ "$1" = "" ]; then
- INCLUDED_DIRS="src util"
+ INCLUDED_DIRS="src util tests"
# special mode: take diff from stdin, but exclude the dirs
elif [ "$1" = "diff" ]; then
args=$( echo $EXCLUDED_DIRS | \
diff --git a/util/lint/lint-stable-000-license-headers b/util/lint/lint-stable-000-license-headers
index a29c5d42dc..9da4a9acdf 100755
--- a/util/lint/lint-stable-000-license-headers
+++ b/util/lint/lint-stable-000-license-headers
@@ -6,4 +6,4 @@
# Top level
util/lint/lint-000-license-headers "src/acpi src/arch src/commonlib src/console \
src/cpu src/device src/drivers src/ec src/mainboard src/northbridge \
- src/security src/soc src/southbridge src/superio"
+ src/security src/soc src/southbridge src/superio tests/"
diff --git a/util/lint/lint-stable-003-whitespace b/util/lint/lint-stable-003-whitespace
index a6e915de58..430404383a 100755
--- a/util/lint/lint-stable-003-whitespace
+++ b/util/lint/lint-stable-003-whitespace
@@ -6,7 +6,7 @@
LC_ALL=C export LC_ALL
EXCLUDELIST='^src/vendorcode/|^util/kconfig/|^util/nvidia/cbootimage$|COPYING|LICENSE|README|_shipped$|\.patch$|\.bin$|\.hex$|\.jpg$|\.ttf$|\.woff$|\.png$|\.eot$|\.vbt$|\.ico$'
-INCLUDELIST="src util payloads Makefile* toolchain.inc"
+INCLUDELIST="src util payloads Makefile* toolchain.inc tests"
# shellcheck disable=SC2086,SC2046
if uname | grep -qi "linux"; then
diff --git a/util/lint/lint-stable-009-old-licenses b/util/lint/lint-stable-009-old-licenses
index 4d0cb4f4d3..f5c1f4143e 100755
--- a/util/lint/lint-stable-009-old-licenses
+++ b/util/lint/lint-stable-009-old-licenses
@@ -23,7 +23,7 @@ _shipped$|\
"
if [ -z "$HEADER_DIRS" ]; then
- HEADER_DIRS="src util"
+ HEADER_DIRS="src util tests"
fi
LC_ALL=C export LC_ALL
diff --git a/util/lint/lint-stable-012-executable-bit b/util/lint/lint-stable-012-executable-bit
index e22dda5306..5651a67d54 100755
--- a/util/lint/lint-stable-012-executable-bit
+++ b/util/lint/lint-stable-012-executable-bit
@@ -4,5 +4,5 @@
# DESCR: Check that source files are not executable
LC_ALL=C export LC_ALL
-git ls-tree --full-tree -r HEAD src |grep "^100[7531][7531][7531] blob " |cut -f2- |grep -v "\.sh$" | \
+git ls-tree --full-tree -r HEAD src tests |grep "^100[7531][7531][7531] blob " |cut -f2- |grep -v "\.sh$" | \
sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.,"