intel/pineview: Don't try to store 34 bits in 32
[coreboot.git] / util / lint / check_lint_tests
blob741d2459c8dda665b99ab956ae4ea2c2a6c93b0d
1 #!/bin/bash
3 # test to make sure the lint tests fail
4 SPACE=' '
5 UNDERSCORE='_'
7 #lint-stable-000-license-headers
8 TESTFILE000a=src/arch/x86/thread.c
9 TESTFILE000b=src/arch/power8/misc.c
10 sed -i.bak 's/^[[:space:]]\*[[:space:]].*//' ${TESTFILE000a}
11 sed -i.bak 's/^[[:space:]]\*[[:space:]]but WITHOUT ANY WARRANTY;//' ${TESTFILE000b}
13 #lint-stable-003-whitespace
14 TESTFILE003=src/acpi/sata.c
15 sed -i.bak 's/^$/ /' ${TESTFILE003}
17 #lint-stable-004-style-labels
18 TESTFILE004=src/soc/nvidia/tegra124/spi.c
19 sed -i.bak 's/^done:/ done:/' ${TESTFILE004}
21 #lint-stable-005-board-status
22 TESTFILE005a=src/mainboard/google/storm/board_info.txt
23 TESTFILE005b=src/mainboard/aaeon/pfm-540i_revb/board_info.txt
24 rm -f ${TESTFILE005a}
25 sed -i.bak 's/^Category:.*/Category: lint/' ${TESTFILE005b}
27 #lint-stable-006-board-name
28 TESTFILE006=src/mainboard/amd/bettong/Kconfig.name
29 rm -f ${TESTFILE006}
31 #lint-stable-008-kconfig
33 #lint-stable-009-old-licenses
34 TESTFILE009=src/superio/common/conf_mode.c
35 sed -i "s/for more details./for more details.\n \* You${SPACE}should${SPACE}have received a copy of the GNU General Public License\n \* along with this program; if not, write to the Free Software\n \* Foundation, Inc./" ${TESTFILE009}
36 git add ${TESTFILE009}
38 #lint-stable-010-asm-syntax
39 TESTFILE010=src/arch/x86/bootblock_romcc.S
40 sed -i "1s/^/.att${UNDERSCORE}syntax noprefix\n/" ${TESTFILE010}
41 git add ${TESTFILE010}
43 #lint-stable-012-executable-bit
44 TESTFILE012=src/lib/libgcc.c
45 chmod +x ${TESTFILE012}
47 #lint-stable-013-site-local
48 mkdir -p site-local
49 TESTFILE013=$(mktemp --tmpdir=site-local)
50 git add -f ${TESTFILE013}