Skip to content

patman: Add tests for U-Boot-specific checkpatch checks

Simon Glass u-boot 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5patman: Rename test.py to test_checkpatch.pytools/patman/main.py tools/patman/test_checkpatch.py+5 -60 replies
1/5patman: Rename test.py to test_checkpatch.py+0 -00 replies
2/5patman: Add a test for the 'possible new uclass' checktools/patman/test_checkpatch.py+77 -00 replies
2/5patman: Add a test for the 'possible new uclass' check+0 -00 replies
3/5patman: Decode output from the '--show-types' optiontools/patman/checkpatch.py tools/patman/test_checkpatch.py+17 -110 replies
3/5patman: Decode output from the '--show-types' option+0 -00 replies
4/5patman: Add tests for the rest of the checkpatch checkstools/patman/test_checkpatch.py+43 -40 replies
4/5patman: Add tests for the rest of the checkpatch checks+0 -00 replies
5/5checkpatch: Don't warn about PREFER_IF in headers/DT filesscripts/checkpatch.pl tools/patman/test_checkpatch.py+3 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/5] patman: Add tests for U-Boot-specific checkpatch checks

It is quite likely that the number of U-Boot-specific tests in checkpatch.pl will increase over time. We should have tests for these to avoid undefined behaviour and bugs being introduced, which might cause people to ignore the warnings.

This series adds the tests and modifies one check to be more specific.

Simon Glass (5):
patman: Rename test.py to test_checkpatch.py
patman: Add a test for the 'possible new uclass' check
patman: Decode output from the '--show-types' option
patman: Add tests for the rest of the checkpatch checks
checkpatch: Don't warn about PREFER_IF in headers/DT files

 scripts/checkpatch.pl                        |   2 +-
 tools/patman/checkpatch.py                   |  24 ++--
 tools/patman/main.py                         |   4 +-
 tools/patman/{test.py => test_checkpatch.py} | 125 ++++++++++++++++++-
 4 files changed, 139 insertions(+), 16 deletions(-)
 rename tools/patman/{test.py => test_checkpatch.py} (69%)
Signature · 1 line
2.27.0.290.gba653c62da-goog