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>
This commit is contained in:
Jan Dabros 2020-07-16 13:38:01 +02:00 committed by Patrick Georgi
parent b3b13efde6
commit ffa58cfc12
5 changed files with 5 additions and 5 deletions

View File

@ -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 | \

View File

@ -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/"

View File

@ -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

View File

@ -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

View File

@ -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.,"