Lines Matching refs:test_name
148 #define TEST(test_name) __TEST_IMPL(test_name, -1) argument
167 #define TEST_SIGNAL(test_name, signal) __TEST_IMPL(test_name, signal) argument
169 #define __TEST_IMPL(test_name, _signal) \ argument
170 static void test_name(struct __test_metadata *_metadata); \
171 static struct __test_metadata _##test_name##_object = \
172 { .name = "global." #test_name, \
173 .fn = &test_name, .termsig = _signal, \
175 static void __attribute__((constructor)) _register_##test_name(void) \
177 __register_test(&_##test_name##_object); \
179 static void test_name( \
284 #define TEST_F(fixture_name, test_name) \ argument
285 __TEST_F_IMPL(fixture_name, test_name, -1, TEST_TIMEOUT_DEFAULT)
287 #define TEST_F_SIGNAL(fixture_name, test_name, signal) \ argument
288 __TEST_F_IMPL(fixture_name, test_name, signal, TEST_TIMEOUT_DEFAULT)
290 #define TEST_F_TIMEOUT(fixture_name, test_name, timeout) \ argument
291 __TEST_F_IMPL(fixture_name, test_name, -1, timeout)
293 #define __TEST_F_IMPL(fixture_name, test_name, signal, tmout) \ argument
294 static void fixture_name##_##test_name( \
297 static inline void wrapper_##fixture_name##_##test_name( \
307 fixture_name##_##test_name(_metadata, &self); \
311 _##fixture_name##_##test_name##_object = { \
312 .name = #fixture_name "." #test_name, \
313 .fn = &wrapper_##fixture_name##_##test_name, \
318 _register_##fixture_name##_##test_name(void) \
320 __register_test(&_##fixture_name##_##test_name##_object); \
322 static void fixture_name##_##test_name( \