summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2021-03-07 17:35:11 -0700
committerTom Rini <trini@konsulko.com>2021-03-12 09:57:30 -0500
commit2a2814d5f2714a7b0aef9ea7f9d8d67a34875d55 (patch)
tree681bf3e33ccebe916bfd60425829d885dd45a35b /include
parenta7a98755b888254cbc1857c567ce898a8e105e0f (diff)
downloadu-boot-2a2814d5f2714a7b0aef9ea7f9d8d67a34875d55.tar.gz
u-boot-2a2814d5f2714a7b0aef9ea7f9d8d67a34875d55.tar.xz
u-boot-2a2814d5f2714a7b0aef9ea7f9d8d67a34875d55.zip
test: Rename all linker lists to have a ut_ prefix
At present each test suite has its own portion of the linker_list section of the image, but other lists are interspersed. This makes it hard to enumerate all the available tests without knowing the suites that each one is in. Place all tests together in a single contiguous list by giving them common prefix not used elsewhere in U-Boot. This makes it possible to find the start and end of all tests. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/test/test.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/test/test.h b/include/test/test.h
index b16c9135f2..3330dcc72d 100644
--- a/include/test/test.h
+++ b/include/test/test.h
@@ -86,18 +86,18 @@ struct unit_test {
* @_suite: name of the test suite concatenated with "_test"
*/
#define UNIT_TEST(_name, _flags, _suite) \
- ll_entry_declare(struct unit_test, _name, _suite) = { \
+ ll_entry_declare(struct unit_test, _name, ut_ ## _suite) = { \
.file = __FILE__, \
.name = #_name, \
.flags = _flags, \
.func = _name, \
}
-/* Get the start of a list of unit tests for a particular category */
+/* Get the start of a list of unit tests for a particular suite */
#define UNIT_TEST_SUITE_START(_suite) \
- ll_entry_start(struct unit_test, _suite)
+ ll_entry_start(struct unit_test, ut_ ## _suite)
#define UNIT_TEST_SUITE_COUNT(_suite) \
- ll_entry_count(struct unit_test, _suite)
+ ll_entry_count(struct unit_test, ut_ ## _suite)
/* Sizes for devres tests */
enum {