From 5c1cf4d2dab12a8f5b4a49dc2f06f582db69c1ef Mon Sep 17 00:00:00 2001 From: Simon Glass Date: Sun, 7 Mar 2021 17:35:09 -0700 Subject: test: log: Rename log main test file to log_ut.c The current name is the same as the main test runner file. Rename it to avoid confusion. Signed-off-by: Simon Glass Reviewed-by: Heinrich Schuchardt --- test/log/Makefile | 2 +- test/log/log_ut.c | 21 +++++++++++++++++++++ test/log/test-main.c | 21 --------------------- 3 files changed, 22 insertions(+), 22 deletions(-) create mode 100644 test/log/log_ut.c delete mode 100644 test/log/test-main.c (limited to 'test') diff --git a/test/log/Makefile b/test/log/Makefile index 3f09deb..a3dedac 100644 --- a/test/log/Makefile +++ b/test/log/Makefile @@ -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 index 0000000..c534add --- /dev/null +++ b/test/log/log_ut.c @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright (c) 2020, Heinrich Schuchardt + * + * Logging function tests. + */ + +#include +#include +#include +#include +#include + +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 index c534add..0000000 --- a/test/log/test-main.c +++ /dev/null @@ -1,21 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0+ -/* - * Copyright (c) 2020, Heinrich Schuchardt - * - * Logging function tests. - */ - -#include -#include -#include -#include -#include - -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); -} -- cgit v1.1