aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-20 14:25:42 -0700
committerTom Rini <trini@konsulko.com>2025-01-24 14:34:40 -0600
commitd824e20fc27c2c40d8638b1cdf9ad6ea2cc32420 (patch)
treed37b412157220d888971a8b965a1d08f443f080f /test
parenta9976e52bea8d1b89469226989f7429d4b174050 (diff)
downloadu-boot-d824e20fc27c2c40d8638b1cdf9ad6ea2cc32420.tar.gz
test: Drop the function for running lib tests
Use the new suite-runner to run these tests instead. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/cmd_ut.c2
-rw-r--r--test/lib/Makefile1
-rw-r--r--test/lib/cmd_ut_lib.c19
3 files changed, 1 insertions, 21 deletions
diff --git a/test/cmd_ut.c b/test/cmd_ut.c
index db96a4ac2ac..27d090c7225 100644
--- a/test/cmd_ut.c
+++ b/test/cmd_ut.c
@@ -152,7 +152,7 @@ static struct suite suites[] = {
SUITE_CMD(overlay, do_ut_overlay),
#endif
#ifdef CONFIG_UT_LIB
- SUITE_CMD(lib, do_ut_lib),
+ SUITE(lib),
#endif
#ifdef CONFIG_UT_LOG
SUITE_CMD(log, do_ut_log),
diff --git a/test/lib/Makefile b/test/lib/Makefile
index 24ce6ed8f00..f136cac5ce7 100644
--- a/test/lib/Makefile
+++ b/test/lib/Makefile
@@ -6,7 +6,6 @@
obj-$(CONFIG_$(XPL_)UT_COMPRESSION) += compression.o
ifeq ($(CONFIG_XPL_BUILD),)
-obj-y += cmd_ut_lib.o
obj-y += abuf.o
obj-y += alist.o
obj-$(CONFIG_EFI_LOADER) += efi_device_path.o
diff --git a/test/lib/cmd_ut_lib.c b/test/lib/cmd_ut_lib.c
deleted file mode 100644
index 90a8c0728b7..00000000000
--- a/test/lib/cmd_ut_lib.c
+++ /dev/null
@@ -1,19 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (c) 2019 Heinrich Schuchardt <xypron.glpk@gmx.de>
- *
- * Unit tests for library functions
- */
-
-#include <command.h>
-#include <test/lib.h>
-#include <test/suites.h>
-#include <test/ut.h>
-
-int do_ut_lib(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
- struct unit_test *tests = UNIT_TEST_SUITE_START(lib);
- const int n_ents = UNIT_TEST_SUITE_COUNT(lib);
-
- return cmd_ut_category("lib", "lib_test_", tests, n_ents, argc, argv);
-}