All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 00/12] Fix 'make check' errors
@ 2026-11-10 12:23 Andrew Goodbody
  2026-11-10 12:23 ` [PATCH v2 01/12] binman: btool: lz4: Update version regex Andrew Goodbody
                   ` (12 more replies)
  0 siblings, 13 replies; 41+ messages in thread
From: Andrew Goodbody @ 2026-11-10 12:23 UTC (permalink / raw)
  To: u-boot, Kory Maincent, Linus Walleij, Ilias Apalodimas
  Cc: Andrew Goodbody, Alper Nebi Yasak, Tom Rini, Anshul Dalal,
	Alexey Charkov, Francesco Valla, Heinrich Schuchardt,
	Mattijs Korpershoek, Carlo Caione, Yao Zi, Michal Simek,
	Quentin Schulz, Simon Glass

Various tests can be run using 'make check', 'make qcheck' and 'make
tcheck'. These have become broken and need fixing to be useful again.

Running 'make qcheck' fails on the binman test to check the version
numbers of the tools are found as expected. Update the code for the
tools that have been updated and no longer have their version numbers
found by the code.

There are also failures in buildman. First add code to understand 'gcc
-E' as an alternative to cpp. Second add the code to accept an empty
CROSS_COMPILE variable in the environment when testing that
CROSS_COMPILE is not set by the toolchain selection.

dtoc was not achieving 100% code coverage so add a new test to rectify
that.

Disable event_dump tests that are broken on newer versions of binutils.

Build mkeficapsule in the tree that is used for testing the tools.

'make tcheck' was not achieving 100% code coverage and needs to know the
location of the built tools to resolve.

'make check' tests of the file system had errors due to ext4 file
systems being created with an orphaned file but were marked clean.

Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
---
Changes in v2:
- Added commit 7/12 to address intermittent failure for binman to get
  version string from lzma_alone.
- Added commit 8/12 to address a test failure due to the build tree not
  containing the built version of mkeficapsule and using the system
  version instead.
- Dropped a space from the beginning of a line in a new file in 5/12 to
  quiet checkpatch warning and remove most of the content as not needed
  for test as suggested by Simon Glass.
- Fix 'make tcheck' binman code coverage test by passing in location of
  tools built from this tree in 9/12.
- Fix typo in tools/Kconfig for TOOLS_MKEFICAPSULE config item in 10/12
- Cope with CPP="gcc -E" in buildman in 11/12
- Ensure fsck can be run and use it to force clean ext4 file systems on
  creation to remove orphaned file. 12/12
- Picked up some rb tags from Simon Glass
- Link to v1: https://patch.msgid.link/20261102-qcheck_fix-v1-0-f1f547c4a731@linaro.org

To: u-boot@lists.u-boot-project.org
To: Kory Maincent <kory.maincent@bootlin.com>
To: Linus Walleij <linusw@kernel.org>
To: Ilias Apalodimas <ilias.apalodimas@linaro.org>
Cc: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Cc: Tom Rini <trini@konsulko.com>
Cc: Andrew Goodbody <andrew.goodbody@linaro.org>
Cc: Anshul Dalal <anshuld@ti.com>
Cc: Alexey Charkov <alchark@flipper.net>
Cc: Francesco Valla <francesco@valla.it>
Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>
Cc: Mattijs Korpershoek <mkorpershoek@kernel.org>
Cc: Carlo Caione <ccaione@baylibre.com>
Cc: Yao Zi <me@ziyao.cc>
Cc: Michal Simek <michal.simek@amd.com>
Cc: Quentin Schulz <quentin.schulz@cherry.de>

---
Andrew Goodbody (12):
      binman: btool: lz4: Update version regex
      binman: btool: lzma_alone: Update version function
      test: Do not set DTC environment variable
      buildman: Cope with empty CROSS_COMPILE in tests
      dtoc: test: Fix coverage by adding test
      test: Disable running event_dump test for make check
      binman: bintool: Do not add empty argument
      test: Build mkeficapsule in tree used by tests
      test: Pass location of built tools to binman code coverage test
      tools: Fix typo in name of command mkeficapsule
      buildman: Cope with CPP="gcc -E"
      test: Fix test_basic file system tests

 configs/sandbox_spl_defconfig                          |  8 ++++----
 test/py/tests/fs_helper.py                             |  4 ++++
 test/py/tests/test_fs/fstest_helpers.py                |  5 +++++
 test/run                                               |  8 ++++----
 tools/Kconfig                                          |  2 +-
 tools/binman/bintool.py                                |  5 ++++-
 tools/binman/btool/lz4.py                              |  2 +-
 tools/binman/btool/lzma_alone.py                       |  2 +-
 tools/buildman/boards.py                               |  3 +--
 tools/buildman/func_test.py                            |  5 +++--
 tools/buildman/test.py                                 |  4 ++--
 tools/dtoc/test/dtoc_test_include.dts                  | 13 +++++++++++++
 tools/dtoc/test/newinclude/dtoc_test_include_file.dtsi |  7 +++++++
 tools/dtoc/test_fdt.py                                 |  7 +++++++
 14 files changed, 57 insertions(+), 18 deletions(-)
---
base-commit: 709a97a05df66e394f40d249105d0baade46f107
change-id: 20261029-qcheck_fix-af97ed0d895b

Best regards,
--  
Andrew Goodbody <andrew.goodbody@linaro.org>


^ permalink raw reply	[flat|nested] 41+ messages in thread

end of thread, other threads:[~2026-11-13 17:05 UTC | newest]

Thread overview: 41+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-10 12:23 [PATCH v2 00/12] Fix 'make check' errors Andrew Goodbody
2026-11-10 12:23 ` [PATCH v2 01/12] binman: btool: lz4: Update version regex Andrew Goodbody
2026-11-10 12:23 ` [PATCH v2 02/12] binman: btool: lzma_alone: Update version function Andrew Goodbody
2026-11-10 12:24 ` [PATCH v2 03/12] test: Do not set DTC environment variable Andrew Goodbody
2026-11-10 13:30   ` Quentin Schulz
2026-11-10 14:30     ` Andrew Goodbody
2026-11-10 14:43       ` Quentin Schulz
2026-11-11 16:58         ` Andrew Goodbody
2026-11-10 12:24 ` [PATCH v2 04/12] buildman: Cope with empty CROSS_COMPILE in tests Andrew Goodbody
2026-11-10 13:48   ` Quentin Schulz
2026-11-10 12:24 ` [PATCH v2 05/12] dtoc: test: Fix coverage by adding test Andrew Goodbody
2026-11-10 14:25   ` Quentin Schulz
2026-11-10 16:09     ` Andrew Goodbody
2026-11-10 12:24 ` [PATCH v2 06/12] test: Disable running event_dump test for make check Andrew Goodbody
2026-11-10 14:25   ` Quentin Schulz
2026-11-10 14:51     ` Andrew Goodbody
2026-11-10 14:53       ` Quentin Schulz
2026-11-10 12:24 ` [PATCH v2 07/12] binman: bintool: Do not add empty argument Andrew Goodbody
2026-11-10 14:41   ` Quentin Schulz
2026-11-10 18:12     ` Andrew Goodbody
2026-11-10 12:24 ` [PATCH v2 08/12] test: Build mkeficapsule in tree used by tests Andrew Goodbody
2026-11-10 14:49   ` Quentin Schulz
2026-11-10 16:35     ` Andrew Goodbody
2026-11-12 14:38       ` Quentin Schulz
2026-11-10 12:24 ` [PATCH v2 09/12] test: Pass location of built tools to binman code coverage test Andrew Goodbody
2026-11-10 15:06   ` Quentin Schulz
2026-11-11 14:34     ` Andrew Goodbody
2026-11-11 16:29       ` Quentin Schulz
2026-11-10 12:24 ` [PATCH v2 10/12] tools: Fix typo in name of command mkeficapsule Andrew Goodbody
2026-11-10 15:10   ` Quentin Schulz
2026-11-10 12:24 ` [PATCH v2 11/12] buildman: Cope with CPP="gcc -E" Andrew Goodbody
2026-11-10 15:29   ` Quentin Schulz
2026-11-11 12:52     ` Andrew Goodbody
2026-11-10 12:24 ` [PATCH v2 12/12] test: Fix test_basic file system tests Andrew Goodbody
2026-11-10 15:39   ` Quentin Schulz
2026-11-10 17:31     ` Andrew Goodbody
2026-11-10 14:55 ` [PATCH v2 00/12] Fix 'make check' errors Tom Rini
2026-11-10 15:55   ` Andrew Goodbody
2026-11-10 16:57     ` Tom Rini
2026-11-13 16:47       ` Andrew Goodbody
2026-11-13 17:04         ` Tom Rini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.