aboutsummaryrefslogtreecommitdiff
path: root/include/test/test.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/test/test.h')
-rw-r--r--include/test/test.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/test/test.h b/include/test/test.h
index 5eeec35f525..b16c9135f2c 100644
--- a/include/test/test.h
+++ b/include/test/test.h
@@ -93,6 +93,12 @@ struct unit_test {
.func = _name, \
}
+/* Get the start of a list of unit tests for a particular category */
+#define UNIT_TEST_SUITE_START(_suite) \
+ ll_entry_start(struct unit_test, _suite)
+#define UNIT_TEST_SUITE_COUNT(_suite) \
+ ll_entry_count(struct unit_test, _suite)
+
/* Sizes for devres tests */
enum {
TEST_DEVRES_SIZE = 100,