U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Glass <sjg@chromium.org>
To: U-Boot Mailing List <u-boot@lists.denx.de>
Cc: Tom Rini <trini@konsulko.com>, Simon Glass <sjg@chromium.org>,
	Alexey Brodkin <Alexey.Brodkin@synopsys.com>,
	Alexey Brodkin <abrodkin@synopsys.com>,
	Andrejs Cainikovs <andrejs.cainikovs@toradex.com>,
	Heinrich Schuchardt <xypron.glpk@gmx.de>,
	Leo Yu-Chi Liang <ycliang@andestech.com>,
	Marek Vasut <marek.vasut+renesas@mailbox.org>,
	Neha Malcom Francis <n-francis@ti.com>,
	Quentin Schulz <quentin.schulz@cherry.de>,
	Sean Anderson <seanga2@gmail.com>
Subject: [PATCH v2 0/6] Add Binman code-coverage test to CI
Date: Fri, 21 Jun 2024 07:14:16 -0600	[thread overview]
Message-ID: <20240621131423.2363294-1-sjg@chromium.org> (raw)

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 v2:
- Add new patch to fix a few typos in toolchain code
- Add to azure also (oops)
- Add to buildman requirements instead
- Fix 'envronment' typo

Simon Glass (6):
  buildman: Add python3-coverage
  buildman: Add python3-pycryptodome
  buildman: Fix a few typos in toolchain code
  buildman: Support building within a Python venv
  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/requirements.txt |  2 +
 tools/buildman/test.py          | 83 +++++++++++++++++++++++++++++++++
 tools/buildman/toolchain.py     | 35 +++++++++++---
 tools/u_boot_pylib/test_util.py | 11 +++--
 7 files changed, 132 insertions(+), 11 deletions(-)

-- 
2.34.1


             reply	other threads:[~2024-06-21 13:14 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-21 13:14 Simon Glass [this message]
2024-06-21 13:14 ` [PATCH v2 1/6] buildman: Add python3-coverage Simon Glass
2024-06-21 15:22   ` Tom Rini
2024-06-21 13:14 ` [PATCH v2 2/6] buildman: Add python3-pycryptodome Simon Glass
2024-06-21 15:22   ` Tom Rini
2024-06-21 13:14 ` [PATCH v2 3/6] buildman: Fix a few typos in toolchain code Simon Glass
2024-06-21 13:14 ` [PATCH v2 4/6] buildman: Support building within a Python venv Simon Glass
2024-06-21 13:14 ` [PATCH v2 5/6] u_boot_pylib: Use correct coverage tool within venv Simon Glass
2024-06-21 13:14 ` [PATCH v2 6/6] CI: Run code-coverage test for Binman Simon Glass

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240621131423.2363294-1-sjg@chromium.org \
    --to=sjg@chromium.org \
    --cc=Alexey.Brodkin@synopsys.com \
    --cc=abrodkin@synopsys.com \
    --cc=andrejs.cainikovs@toradex.com \
    --cc=marek.vasut+renesas@mailbox.org \
    --cc=n-francis@ti.com \
    --cc=quentin.schulz@cherry.de \
    --cc=seanga2@gmail.com \
    --cc=trini@konsulko.com \
    --cc=u-boot@lists.denx.de \
    --cc=xypron.glpk@gmx.de \
    --cc=ycliang@andestech.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox