]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
test: Drop the function for running log tests
authorSimon Glass <sjg@chromium.org>
Mon, 20 Jan 2025 21:25:43 +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/log/Makefile
test/log/log_ut.c [deleted file]

index 08b35b276beeb755407f3673262d296d530bf1e1..72f98eb355876ea7684b30e07ae64e0fe9f3bd40 100644 (file)
@@ -39,7 +39,6 @@ int do_ut_bloblist(struct cmd_tbl *cmdtp, int flag, int argc,
                   char *const argv[]);
 int do_ut_hush(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_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
 int do_ut_mbr(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
 int do_ut_measurement(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[]);
 int do_ut_mem(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]);
index 27d090c7225c67c2e479b94d4bd01b66d219acc1..a196702dd1708e3f16ac88cb1deea9efab5197b0 100644 (file)
@@ -155,7 +155,7 @@ static struct suite suites[] = {
        SUITE(lib),
 #endif
 #ifdef CONFIG_UT_LOG
-       SUITE_CMD(log, do_ut_log),
+       SUITE(log),
 #endif
 #if defined(CONFIG_SANDBOX) && defined(CONFIG_CMD_MBR) && defined(CONFIG_CMD_MMC) \
         && defined(CONFIG_MMC_SANDBOX) && defined(CONFIG_MMC_WRITE)
index 08eea70e3446ad3d7f42335d82663e2207783b8f..24b7c46786ddec6fa9e55e38cecc33a1dd7dcb3a 100644 (file)
@@ -7,8 +7,6 @@ obj-$(CONFIG_CMD_LOG) += log_filter.o
 
 ifdef CONFIG_UT_LOG
 
-obj-y += log_ut.o
-
 ifdef CONFIG_SANDBOX
 obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
 obj-$(CONFIG_LOG_SYSLOG) += syslog_test_ndebug.o
diff --git a/test/log/log_ut.c b/test/log/log_ut.c
deleted file mode 100644 (file)
index 2aa3afe..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
- *
- * Logging function tests.
- */
-
-#include <console.h>
-#include <log.h>
-#include <test/log.h>
-#include <test/suites.h>
-
-int do_ut_log(struct cmd_tbl *cmdtp, int flag, int argc, char * const argv[])
-{
-       struct unit_test *tests = UNIT_TEST_SUITE_START(log);
-       const int n_ents = UNIT_TEST_SUITE_COUNT(log);
-
-       return cmd_ut_category("log", "log_test_",
-                              tests, n_ents, argc, argv);
-}