Skip to content

Add Binman code-coverage test to CI

Simon Glass u-boot 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest6 patches 12 repliesIn review
  2. v26 patches 2 repliesSuperseded
  3. v15 patches 13 repliesSuperseded

Changes in v3 from the cover letter

- Drop the PATH modification altogether

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6buildman: Add python3-coveragetools/buildman/requirements.txt+1 -01 reply
2/6buildman: Add python3-pycryptodometools/buildman/requirements.txt+1 -01 reply
3/6buildman: Fix a few typos in toolchain codetools/buildman/toolchain.py+2 -21 reply
4/6buildman: Always use the full path in CROSS_COMPILEtools/buildman/bsettings.py tools/buildman/builder.py tools/buildman/builderthread.py +4 more+92 -237 replies
5/6u_boot_pylib: Use correct coverage tool within venvtools/u_boot_pylib/test_util.py+8 -31 reply
6/6CI: Run code-coverage test for Binman.azure-pipelines.yml .gitlab-ci.yml+7 -21 reply

Reviews trailers per patch

4 of 6 patches have a Reviewed-by or Acked-by.

PatchTom RiniAndrejs Cainikovs
1/6R-b R-b
2/6R-b R-b
3/6
4/6R-b R-b
5/6
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/6] Add Binman code-coverage test to CI

Binman has 100% code coverage to ensure that future changes and refactors do not break existing entry types. This is a critical feature, given that it is relied on to produce images for all sorts of different SoCs and vendors.

With the NXP additions the 'binman test -T' step was missed, so the Binman coverage test is currently failing.

This series provides a means to close the testing gap. It cannot be applied until the tests are added, which should happen before -next is applied to -master

Changes in v3:
- Drop the PATH modification altogether

Changes in v2:
- Add new patch to fix a few typos in toolchain code
- Add to azure also (oops)
- Add to buildman requirements instead

Simon Glass (6):
buildman: Add python3-coverage
buildman: Add python3-pycryptodome
buildman: Fix a few typos in toolchain code
buildman: Always use the full path in CROSS_COMPILE
u_boot_pylib: Use correct coverage tool within venv
CI: Run code-coverage test for Binman

 .azure-pipelines.yml            |  5 ++-
 .gitlab-ci.yml                  |  4 +-
 tools/buildman/bsettings.py     |  3 ++
 tools/buildman/builder.py       |  5 +--
 tools/buildman/builderthread.py |  4 +-
 tools/buildman/cmdline.py       |  2 -
 tools/buildman/control.py       |  6 +--
 tools/buildman/requirements.txt |  2 +
 tools/buildman/test.py          | 75 +++++++++++++++++++++++++++++++++
 tools/buildman/toolchain.py     | 24 +++++------
 tools/u_boot_pylib/test_util.py | 11 +++--
 11 files changed, 111 insertions(+), 30 deletions(-)
Signature · 1 line
2.34.1