test: log: Rename log main test file to log_ut.c
authorSimon Glass <sjg@chromium.org>
Mon, 8 Mar 2021 00:35:09 +0000 (17:35 -0700)
committerTom Rini <trini@konsulko.com>
Fri, 12 Mar 2021 14:57:30 +0000 (09:57 -0500)
The current name is the same as the main test runner file. Rename it to
avoid confusion.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
test/log/Makefile
test/log/log_ut.c [new file with mode: 0644]
test/log/test-main.c [deleted file]

index 3f09deb644b99a7e9cafbedfc92c2d94b8e0d978..a3dedace043b0786998cc92dbfaeee94ebb34177 100644 (file)
@@ -7,7 +7,7 @@ obj-$(CONFIG_CMD_LOG) += log_filter.o
 
 ifdef CONFIG_UT_LOG
 
-obj-y += test-main.o
+obj-y += log_ut.o
 
 ifdef CONFIG_SANDBOX
 obj-$(CONFIG_LOG_SYSLOG) += syslog_test.o
diff --git a/test/log/log_ut.c b/test/log/log_ut.c
new file mode 100644 (file)
index 0000000..c534add
--- /dev/null
@@ -0,0 +1,21 @@
+// SPDX-License-Identifier: GPL-2.0+
+/*
+ * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
+ *
+ * Logging function tests.
+ */
+
+#include <common.h>
+#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 = ll_entry_start(struct unit_test, log_test);
+       const int n_ents = ll_entry_count(struct unit_test, log_test);
+
+       return cmd_ut_category("log", "log_test_",
+                              tests, n_ents, argc, argv);
+}
diff --git a/test/log/test-main.c b/test/log/test-main.c
deleted file mode 100644 (file)
index c534add..0000000
+++ /dev/null
@@ -1,21 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0+
-/*
- * Copyright (c) 2020, Heinrich Schuchardt <xypron.glpk@gmx.de>
- *
- * Logging function tests.
- */
-
-#include <common.h>
-#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 = ll_entry_start(struct unit_test, log_test);
-       const int n_ents = ll_entry_count(struct unit_test, log_test);
-
-       return cmd_ut_category("log", "log_test_",
-                              tests, n_ents, argc, argv);
-}