mbox series

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

Message ID 20200614165409.158795-1-sjg@chromium.org
Headers show
Series patman: Add tests for U-Boot-specific checkpatch checks | expand

Message

Simon Glass June 14, 2020, 4:54 p.m. UTC
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%)