From 7ab5c97924bf971a348ff4a1768da624ba2f564c Mon Sep 17 00:00:00 2001 From: Petri Latvala Date: Fri, 10 Mar 2017 16:20:33 +0200 Subject: Always expose IGT subtests for known kernel selftests Even when the running kernel does not support selftests, make subtest enumeration list known kselftests. The list is generated using selftest listing headers copied from the kernel. If the running kernel gains new selftest subtests, they are listed even without copying the headers over and rebuilding IGT. v2: Use correct names for the testcases Signed-off-by: Petri Latvala --- lib/igt_kmod.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/igt_kmod.h') diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h index 10cd3a2d..d49e9d42 100644 --- a/lib/igt_kmod.h +++ b/lib/igt_kmod.h @@ -35,10 +35,16 @@ int igt_kmod_unload(const char *mod_name, unsigned int flags); int igt_i915_driver_load(const char *opts); int igt_i915_driver_unload(void); +struct igt_kselftest_mockentry { + const char *name; + bool do_mock; +}; + void igt_kselftests(const char *module_name, const char *module_options, const char *result_option, - const char *filter); + const char *filter, + struct igt_kselftest_mockentry* mocklist); struct igt_kselftest { struct kmod_module *kmod; -- cgit v1.2.3