diff options
author | Simon Glass | 2021-03-07 17:34:46 -0700 |
---|---|---|
committer | Tom Rini | 2021-03-12 09:57:29 -0500 |
commit | 409f4a2a7280abc6fe22447f7c1933fc5f669539 (patch) | |
tree | 89274cb2d60ecddb11d1ea2f6fe7d9e834d46801 /test | |
parent | 4bc639ee1181dc25df733da5de76ce4ea4b3f406 (diff) |
test: Rename test-main.c to test-dm.c
This is the main test function for driver model but not for other tests.
Rename the file and the function so this is clear.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/Makefile | 2 | ||||
-rw-r--r-- | test/dm/test-dm.c (renamed from test/dm/test-main.c) | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/dm/Makefile b/test/dm/Makefile index fd1455109d4..f5cc5540e8a 100644 --- a/test/dm/Makefile +++ b/test/dm/Makefile @@ -2,7 +2,7 @@ # # Copyright (c) 2013 Google, Inc -obj-$(CONFIG_UT_DM) += test-main.o +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. diff --git a/test/dm/test-main.c b/test/dm/test-dm.c index 560f8d63ec6..71e9cf6e5da 100644 --- a/test/dm/test-main.c +++ b/test/dm/test-dm.c @@ -146,7 +146,7 @@ static bool test_matches(const char *test_name, const char *find_name) return false; } -int dm_test_main(const char *test_name) +int dm_test_run(const char *test_name) { struct unit_test *tests = ll_entry_start(struct unit_test, dm_test); const int n_ents = ll_entry_count(struct unit_test, dm_test); @@ -226,5 +226,5 @@ int do_ut_dm(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) if (argc > 1) test_name = argv[1]; - return dm_test_main(test_name); + return dm_test_run(test_name); } |