From ffa58cfc1267bbc977c70fa7607520d35366de6d Mon Sep 17 00:00:00 2001 From: Jan Dabros Date: Thu, 16 Jul 2020 13:38:01 +0200 Subject: util/lint: Add lint and checkpatch coverage for tests/ dir Signed-off-by: Jan Dabros Change-Id: I8018b75844e630c9ed46c8bc48f2aa1634bf3369 Reviewed-on: https://review.coreboot.org/c/coreboot/+/43511 Tested-by: build bot (Jenkins) Reviewed-by: Julius Werner Reviewed-by: Paul Fagerburg --- util/lint/lint-007-checkpatch | 2 +- util/lint/lint-stable-000-license-headers | 2 +- util/lint/lint-stable-003-whitespace | 2 +- util/lint/lint-stable-009-old-licenses | 2 +- util/lint/lint-stable-012-executable-bit | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) (limited to 'util') 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.," -- cgit v1.2.3