diff options
Diffstat (limited to 'include/bselftest.h')
-rw-r--r-- | include/bselftest.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/bselftest.h b/include/bselftest.h index 21eeba0526..c3f3238643 100644 --- a/include/bselftest.h +++ b/include/bselftest.h @@ -4,10 +4,12 @@ #include <linux/compiler.h> #include <linux/list.h> +#include <linux/printk.h> #include <init.h> enum bselftest_group { - BSELFTEST_core + BSELFTEST_core, + BSELFTEST_parser, }; struct selftest { @@ -15,6 +17,7 @@ struct selftest { const char *name; int (*func)(void); struct list_head list; + bool running; }; static inline int selftest_report(unsigned int total_tests, unsigned int failed_tests, @@ -71,4 +74,8 @@ static inline void selftests_run(void) } \ __bselftest_initcall(_func##_bselftest_register); + +int selftest_run(struct selftest *test); +bool selftest_is_running(struct selftest *test); + #endif |