diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-07 16:08:10 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-02-08 11:52:34 +0000 |
commit | 8b5453b1e2af9d8bc660916a78e005fd6dab0a31 (patch) | |
tree | 37692c16d0796981642fd278706340bcdfe5c3f2 /lib/igt_kmod.h | |
parent | 164051347421710b8fa7fe79afec2ef1ffd97d30 (diff) |
lib/kselftests: Split up igt_kselftests()
To make it easier to reuse, split up the the single function up into
stages.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'lib/igt_kmod.h')
-rw-r--r-- | lib/igt_kmod.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/lib/igt_kmod.h b/lib/igt_kmod.h index fc0e6fe6..10cd3a2d 100644 --- a/lib/igt_kmod.h +++ b/lib/igt_kmod.h @@ -40,4 +40,32 @@ void igt_kselftests(const char *module_name, const char *result_option, const char *filter); +struct igt_kselftest { + struct kmod_module *kmod; + char *module_name; + int kmsg; +}; + +struct igt_kselftest_list { + struct igt_list link; + unsigned int number; + char *name; + char param[]; +}; + +int igt_kselftest_init(struct igt_kselftest *tst, + const char *module_name); +int igt_kselftest_begin(struct igt_kselftest *tst); + +void igt_kselftest_get_tests(struct kmod_module *kmod, + const char *filter, + struct igt_list *tests); +int igt_kselftest_execute(struct igt_kselftest *tst, + struct igt_kselftest_list *tl, + const char *module_options, + const char *result); + +void igt_kselftest_end(struct igt_kselftest *tst); +void igt_kselftest_fini(struct igt_kselftest *tst); + #endif /* IGT_KMOD_H */ |