[U-Boot] [PATCH v2 10/10] patman: Add a functional test

sjg at google.com sjg at google.com
Wed Jun 7 01:47:29 UTC 2017


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 at chromium.org>
---

Changes in v2:
- Add new clean-up patches and a functional test

 tools/patman/func_test.py                          | 242 +++++++++++++++++++++
 tools/patman/patchstream.py                        |  13 ++
 tools/patman/patman.py                             |   6 +-
 tools/patman/test/0000-cover-letter.patch          |  23 ++
 .../test/0001-pci-Correct-cast-for-sandbox.patch   |  48 ++++
 ...-cast-for-sandbox-in-fdtdec_setup_memory_.patch |  73 +++++++
 tools/patman/test/test01.txt                       |  56 +++++
 7 files changed, 459 insertions(+), 2 deletions(-)
 create mode 100644 tools/patman/func_test.py
 create mode 100644 tools/patman/test/0000-cover-letter.patch
 create mode 100644 tools/patman/test/0001-pci-Correct-cast-for-sandbox.patch
 create mode 100644
tools/patman/test/0002-fdt-Correct-cast-for-sandbox-in-fdtdec_setup_memory_.patch
 create mode 100644 tools/patman/test/test01.txt

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list