patman: Add a test for the 'possible new uclass' check
authorSimon Glass <sjg@chromium.org>
Sun, 14 Jun 2020 16:54:05 +0000 (10:54 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:57:22 +0000 (18:57 -0600)
commit4148c20f533d908a4255c134601b335322a0d38f
tree3277f328e58a73bc5ea2ec49d70fe81edcc0b8ff
parent40d9734cb17897329389230c7ebd9502c95c899b
patman: Add a test for the 'possible new uclass' check

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.

Add a simple new class that can generate a patch with a single-line
addition in it. Use that to add a test for one of the checkpatch checks.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/patman/test_checkpatch.py