Skip to content

test: Include Python tools in test coverage

Simon Glass u-boot 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 0 repliesNew
  2. v126 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Add new patch to correct operation when tests pass
- Adjust PYTHONPATH for new locations
- Adjust PYTHONPATH for new locations
- Drop patches already applied
- Run tests with travis-ci also
- Drop RFC tag from patch for binman code-coverage tests

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7test: Correct operation when tests passtest/run+2 -11 reply
2/7test: Run binman teststest/run+3 -00 replies
2/7test: Run binman tests+0 -00 replies
3/7test: Run patman teststest/run+1 -00 replies
3/7test: Run patman tests+0 -00 replies
4/7test: Run buildman teststest/run+1 -00 replies
4/7test: Run buildman tests+0 -00 replies
5/7test: Run dtoc teststest/run+1 -00 replies
5/7test: Run dtoc tests+0 -00 replies
6/7travis.yml: Run tests for tools.travis.yml+15 -01 reply
7/7binman: Run code coverage teststest/run+7 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [U-Boot] [PATCH v2 0/7] test: Include Python tools in test coverage

At present there are a number of tools in U-Boot which have tests which are not widely used:

patman - prepare, check and send patches
buildman - multi-threaded multi-commit builder
dtoc - convert device tree file to C
binman - produce firmware images

In fact many tests are broken and this has not been noticed.

This series fixes up the tests and updates 'make tests' to run them. This should help ensure that the tests stay current.

Note: This series is available at u-boot-dm/binman-working. It requires Masahiro's pylibfdt series.

Changes in v2:
- Add new patch to correct operation when tests pass
- Adjust PYTHONPATH for new locations
- Adjust PYTHONPATH for new locations
- Drop patches already applied
- Run tests with travis-ci also
- Drop RFC tag from patch for binman code-coverage tests

Simon Glass (7):
test: Correct operation when tests pass
test: Run binman tests
test: Run patman tests
test: Run buildman tests
test: Run dtoc tests
travis.yml: Run tests for tools
binman: Run code coverage tests

 .travis.yml | 15 +++++++++++++++
 test/run    | 16 +++++++++++++++-
 2 files changed, 30 insertions(+), 1 deletion(-)
Signature · 1 line
2.15.0.417.g466bffb3ac-goog