diff options
author | Petri Latvala <petri.latvala@intel.com> | 2017-03-10 16:20:33 +0200 |
---|---|---|
committer | Petri Latvala <petri.latvala@intel.com> | 2017-03-13 15:55:37 +0200 |
commit | 7ab5c97924bf971a348ff4a1768da624ba2f564c (patch) | |
tree | 0b1a994ffdb3e16b87a78f40b92cddbb72914ab2 /lib/igt_kmod.h | |
parent | 5ca0da9f53023b9fcfd327a5f43bc7b0916b24b1 (diff) |
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 <petri.latvala@intel.com>
Diffstat (limited to 'lib/igt_kmod.h')
-rw-r--r-- | lib/igt_kmod.h | 8 |
1 files changed, 7 insertions, 1 deletions
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; |