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%)

-- 
2.27.0.290.gba653c62da-goog

Reply via email to