summaryrefslogtreecommitdiff
path: root/test/cmd_ut.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-20 14:25:31 -0700
committerTom Rini <trini@konsulko.com>2025-01-24 14:34:40 -0600
commitc16b388ea8bcee9acd17a555e66e61c72b973128 (patch)
treee8245c19d3efea1fa94cf1ecea2c1d9ddd2ddfbd /test/cmd_ut.c
parent67f84dba6b90a938cab891d8f71122e10fb99add (diff)
test/py: Add a test which runs all unit tests
Add a Python test which runs 'ut all' and then checks that the expected suites are present and all tests in each suite are run. This can help to check that nothing is missing. Update 'ut info' to ignore the 'all' suite when counting the number of suites, since that is really just a combination of all the other suites. Adjust the message for skipped tests so that appears even if no particular test was selected. This helps the new 'test_suite' test see what is going on. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/cmd_ut.c')
-rw-r--r--test/cmd_ut.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index 3e78d072b3d..978974e6687 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -155,7 +155,7 @@ static int do_ut_info(struct cmd_tbl *cmdtp, int flag, int argc,
{
const char *flags;
- printf("Test suites: %d\n", (int)ARRAY_SIZE(cmd_ut_sub));
+ printf("Test suites: %d\n", (int)ARRAY_SIZE(cmd_ut_sub) - 1);
printf("Total tests: %d\n", (int)UNIT_TEST_ALL_COUNT());
flags = cmd_arg1(argc, argv);