1 | /* SPDX-License-Identifier: GPL-2.0 */ |
2 | |
3 | #ifndef selftest |
4 | #define selftest(x, y) |
5 | #endif |
6 | |
7 | /* |
8 | * List each unit test as selftest(name, function) |
9 | * |
10 | * The name is used as both an enum and expanded as subtest__name to create |
11 | * a module parameter. It must be unique and legal for a C identifier. |
12 | * |
13 | * The function should be of type int function(void). It may be conditionally |
14 | * compiled using #if IS_ENABLED(CONFIG_DRM_I915_SELFTEST). |
15 | * |
16 | * Tests are executed in order by igt/i915_selftest |
17 | */ |
18 | selftest(engine_cs, intel_engine_cs_perf_selftests) |
19 | selftest(request, i915_request_perf_selftests) |
20 | selftest(migrate, intel_migrate_perf_selftests) |
21 | selftest(region, intel_memory_region_perf_selftests) |
22 | |