u-boot/test/lib
Tom Rini 8162f35a10 Merge patch series "test: Improvements to ut command and test-suite running"
Simon Glass <sjg@chromium.org> says:

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.

Future work may:
- get 'ut all' passing
- enable test_suite() in CL, to ensure that 'ut all' keeps passing
- record duration of each suite
- allow running the tests in random order to tease out dependencies
- tweak the output to remove common prefixes
- getting rid of bootstd, optee and seame 'ut' subcommands

Link: https://lore.kernel.org/r/20250120212613.516664-1-sjg@chromium.org
2025-01-24 14:35:37 -06:00
..
abuf.c abuf: Provide a constant buffer 2025-01-22 15:58:03 -06:00
alist.c alist: Add a way to efficiently filter an alist 2024-11-03 21:27:12 -06:00
asn1.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
compression.c compression: test: Move into the lib suite 2024-11-13 11:56:01 -06:00
efi_device_path.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
efi_image_region.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
getopt.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
hexdump.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
Kconfig test: improve configuration for Kconfig test options 2023-04-25 15:31:27 -04:00
kconfig.c test: sandbox: fix invalid_use_of_IF_ENABLED_INT if BLOBLIST=n 2024-12-18 15:19:16 -06:00
kconfig_spl.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
lmb.c lmb: Remove lmb_alloc_base_flags() 2024-12-30 13:21:55 -06:00
longjmp.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
Makefile Merge patch series "test: Improvements to ut command and test-suite running" 2025-01-24 14:35:37 -06:00
rsa.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
sscanf.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
str.c test: lib: Use CONFIG_64BIT to detect 64 bit compile 2024-12-31 10:58:30 -06:00
string.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
strlcat.c Restore patch series "arm: dts: am62-beagleplay: Fix Beagleplay Ethernet" 2024-05-20 13:35:03 -06:00
test_aes.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
test_crc8.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
test_crypt.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
test_errno_str.c test: Drop the blank line before test macros 2024-08-26 18:51:49 -06:00
test_print.c test: Tidy up checking for console end 2024-08-26 18:51:49 -06:00
test_sha256_hkdf.c test: lib: add test for key derivation 2025-01-18 17:12:47 -06:00
test_sha256_hmac.c test: lib: add test for sha256_hmac 2025-01-18 17:12:47 -06:00
time.c Revert "test: Update time tests to use unit-test asserts" 2024-11-22 14:37:21 -06:00
unicode.c test: Move unicode tests into the lib suite 2024-11-13 11:56:02 -06:00
uuid.c test: lib/uuid: add tests for UUID version/variant bits 2024-09-12 17:35:38 +02:00