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:
parent
b3b13efde6
commit
ffa58cfc12
|
@ -22,7 +22,7 @@ opts="--max-line-length 96"
|
||||||
|
|
||||||
# default: test src and util
|
# default: test src and util
|
||||||
if [ "$1" = "" ]; then
|
if [ "$1" = "" ]; then
|
||||||
INCLUDED_DIRS="src util"
|
INCLUDED_DIRS="src util tests"
|
||||||
# special mode: take diff from stdin, but exclude the dirs
|
# special mode: take diff from stdin, but exclude the dirs
|
||||||
elif [ "$1" = "diff" ]; then
|
elif [ "$1" = "diff" ]; then
|
||||||
args=$( echo $EXCLUDED_DIRS | \
|
args=$( echo $EXCLUDED_DIRS | \
|
||||||
|
|
|
@ -6,4 +6,4 @@
|
||||||
# Top level
|
# Top level
|
||||||
util/lint/lint-000-license-headers "src/acpi src/arch src/commonlib src/console \
|
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/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/"
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
LC_ALL=C export LC_ALL
|
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$'
|
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
|
# shellcheck disable=SC2086,SC2046
|
||||||
if uname | grep -qi "linux"; then
|
if uname | grep -qi "linux"; then
|
||||||
|
|
|
@ -23,7 +23,7 @@ _shipped$|\
|
||||||
"
|
"
|
||||||
|
|
||||||
if [ -z "$HEADER_DIRS" ]; then
|
if [ -z "$HEADER_DIRS" ]; then
|
||||||
HEADER_DIRS="src util"
|
HEADER_DIRS="src util tests"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LC_ALL=C export LC_ALL
|
LC_ALL=C export LC_ALL
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
# DESCR: Check that source files are not executable
|
# DESCR: Check that source files are not executable
|
||||||
|
|
||||||
LC_ALL=C export LC_ALL
|
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.,"
|
sed -e "s,^.*$,File & has one or more executable bits set in the file permissions.,"
|
||||||
|
|
Loading…
Reference in New Issue