test: Drop the function for running loadm tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:52 +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/loadm.c
test/cmd_ut.c

index b96a78f..f6b33da 100644 (file)
@@ -32,7 +32,6 @@ int cmd_ut_category(const char *name, const char *prefix,
 
 int do_ut_bootstd(struct cmd_tbl *cmdtp, int flag, int argc,
                  char *const argv[]);
-int do_ut_loadm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_optee(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_overlay(struct cmd_tbl *cmdtp, int flag, int argc,
                  char *const argv[]);
index 78bb12c..3c623aa 100644 (file)
@@ -58,12 +58,3 @@ static int loadm_test_load (struct unit_test_state *uts)
        return 0;
 }
 LOADM_TEST(loadm_test_load, UTF_CONSOLE);
-
-int do_ut_loadm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
-       struct unit_test *tests = UNIT_TEST_SUITE_START(loadm);
-       const int n_ents = UNIT_TEST_SUITE_COUNT(loadm);
-
-       return cmd_ut_category("loadm", "loadm_test_", tests, n_ents, argc,
-                              argv);
-}
index c892891..3620be6 100644 (file)
@@ -181,7 +181,7 @@ static struct suite suites[] = {
        SUITE(hush),
 #endif
 #ifdef CONFIG_CMD_LOADM
-       SUITE_CMD(loadm, do_ut_loadm),
+       SUITE(loadm),
 #endif
 #ifdef CONFIG_CMD_PCI_MPS
        SUITE_CMD(pci_mps, do_ut_pci_mps),