test: Drop the function for running dm tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:37 +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/dm/Makefile
test/dm/test-dm.c [deleted file]

index d6c0061..414613c 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_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[]);
 int do_ut_fdt(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
index 1fda67a..a0905ec 100644 (file)
@@ -133,7 +133,7 @@ static struct suite suites[] = {
 #endif
        SUITE(common),
 #if defined(CONFIG_UT_DM)
-       SUITE_CMD(dm, do_ut_dm),
+       SUITE(dm),
 #endif
 #if defined(CONFIG_UT_ENV)
        SUITE_CMD(env, do_ut_env),
index bcb52ef..e44f3d8 100644 (file)
@@ -3,8 +3,6 @@
 # Copyright (c) 2013 Google, Inc
 # Copyright 2022-2023 Arm Limited and/or its affiliates <open-source-office@arm.com>
 
-obj-$(CONFIG_UT_DM) += test-dm.o
-
 # Tests for particular subsystems - when enabling driver model for a new
 # subsystem you must add sandbox tests here.
 ifeq ($(CONFIG_XPL_BUILD),y)
diff --git a/test/dm/test-dm.c b/test/dm/test-dm.c
deleted file mode 100644 (file)
index 8f83110..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (c) 2013 Google, Inc
- */
-
-#include <test/suites.h>
-#include <test/test.h>
-
-int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
-{
-       struct unit_test *tests = UNIT_TEST_SUITE_START(dm);
-       const int n_ents = UNIT_TEST_SUITE_COUNT(dm);
-
-       return cmd_ut_category("dm", "dm_test_", tests, n_ents, argc, argv);
-}