]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: Drop the function for running common tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:36 +0000 (14:25 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 24 Jan 2025 20:34:40 +0000 (14:34 -0600)
Use the new suite-runner to run these tests instead.

Signed-off-by: Simon Glass <sjg@chromium.org>
include/test/suites.h
test/cmd_ut.c
test/common/Makefile
test/common/cmd_ut_common.c [deleted file]

index 21158692e9bf8e3f1ca886bd866840c067d53cd9..d6c0061ff87f4e6d457dc053beb9643b3362c11f 100644 (file)
@@ -37,7 +37,6 @@ int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
                  char *const argv[]);
 int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
                   char *const argv[]);
-int do_ut_common(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_env(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_exit(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
index 09538301cd7f2d385cc0aa01e72fb6b78e4486ce..1fda67abd95ae06a8de9d172b71239b3c5096299 100644 (file)
@@ -131,7 +131,7 @@ static struct suite suites[] = {
 #ifdef CONFIG_CMDLINE
        SUITE(cmd),
 #endif
-       SUITE_CMD(common, do_ut_common),
+       SUITE(common),
 #if defined(CONFIG_UT_DM)
        SUITE_CMD(dm, do_ut_dm),
 #endif
index 53c4f16164d09e9fb5284e4b249a910286d993f3..9cfb5585d784394a739ed74ce069530a6aa1d5cc 100644 (file)
@@ -1,5 +1,4 @@
 # SPDX-License-Identifier: GPL-2.0+
-obj-y += cmd_ut_common.o
 obj-$(CONFIG_AUTOBOOT) += test_autoboot.o
 ifneq ($(CONFIG_$(XPL_)BLOBLIST),)
 obj-$(CONFIG_$(XPL_)CMDLINE) += bloblist.o
diff --git a/test/common/cmd_ut_common.c b/test/common/cmd_ut_common.c
deleted file mode 100644 (file)
index 0724c93..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-/*
- * Copyright (c) 2019 Heinrich Schuchardt <xypron.glpk@gmx.de>
- * Copyright (c) 2021 Steffen Jaeckel <jaeckel-floss@eyet-services.de>
- *
- * Unit tests for common functions
- */
-
-#include <command.h>
-#include <test/common.h>
-#include <test/suites.h>
-#include <test/ut.h>
-
-int do_ut_common(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
-       struct unit_test *tests = UNIT_TEST_SUITE_START(common);
-       const int n_ents = UNIT_TEST_SUITE_COUNT(common);
-
-       return cmd_ut_category("common", "common_test_", tests, n_ents, argc,
-                              argv);
-}