[PATCH v2 00/44] test: Improvements to ut command and test-suite running

Tom Rini trini at konsulko.com
Wed Jan 22 18:24:20 CET 2025


On Mon, Jan 20, 2025 at 02:25:22PM -0700, Simon Glass wrote:

> The current method of running unit tests relies on subcommands of the
> ut command. Only the code in each subcommand knows how to find the tests
> related to that subcomand.
> 
> This is not ideal and we now have quite a few subcommands which do
> nothing but locate the relevant tests in a linker list, then call a
> common function to run them.
> 
> This series adds a list of test suites, so that these subcommands can be
> removed.
> 
> An issue with 'ut all' is that it doesn't record how many tests failed
> overall, so it is necessary to examine copious amounts of output to look
> for failures. This series adds a new 'total' feature allow recording the
> total number of failed tests.
> 
> To help with 'ut all' a new pytest is created which runs it (as well as
> 'ut info') and makes sure that all is well. Due to the 'ut all' failures
> this does not pass, so the test is disabled for now. It is here because
> it provides security against misnaming a test suite and causing it not
> to run.

This is a size reduction when the tests are enabled (and so seen on a
few in-tree configs), nice work.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20250122/d418f808/attachment.sig>


More information about the U-Boot mailing list