patman: Add a functional test
authorSimon Glass <sjg@chromium.org>
Mon, 29 May 2017 21:31:31 +0000 (15:31 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 9 Jun 2017 02:21:59 +0000 (20:21 -0600)
commit6e87ae1c0730ec99b6824c2a3dc8510813f92b98
tree9c604a63b0fe8a2d9c6f475c98ad7ebffd7c1c81
parenta44f4fb72bcb954bf38385e2953f7320b9f25aa3
patman: Add a functional test

The existing test (patman --test) only covers basic checkpatch output.
We have had some problems with unicode processing and could use test
coverage for the various tags patman supports.

Add a new functional test which runs most of the patman flow on a few
test commits and checks that the results are correct.

See the documentation in the test for a description of what it does.

Signed-off-by: Simon Glass <sjg@chromium.org>
Tested-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
tools/patman/func_test.py [new file with mode: 0644]
tools/patman/patchstream.py
tools/patman/patman.py
tools/patman/test/0000-cover-letter.patch [new file with mode: 0644]
tools/patman/test/0001-pci-Correct-cast-for-sandbox.patch [new file with mode: 0644]
tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_memory_.patch [new file with mode: 0644]
tools/patman/test/test01.txt [new file with mode: 0644]