From patchwork Sun Jun 14 16:54:03 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 242327 List-Id: U-Boot discussion From: sjg at chromium.org (Simon Glass) Date: Sun, 14 Jun 2020 10:54:03 -0600 Subject: [PATCH 0/5] patman: Add tests for U-Boot-specific checkpatch checks Message-ID: <20200614165409.158795-1-sjg@chromium.org> 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%)