kunit: test: create a single centralized executor for all tests
authorAlan Maguire <alan.maguire@oracle.com>
Tue, 4 Aug 2020 20:47:42 +0000 (13:47 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 9 Oct 2020 20:37:34 +0000 (14:37 -0600)
commitaac35468ca20a3a0e75a24c13c0e31610727f120
tree54be2cb278226cff9c2cdd6fef0fdc7795b2e4ea
parent90a025a859a3ac4dfe3db62edf21070a90e98766
kunit: test: create a single centralized executor for all tests

Add a centralized executor to dispatch tests rather than relying on
late_initcall to schedule each test suite separately. Centralized
execution is for built-in tests only; modules will execute tests when
loaded.

Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Co-developed-by: Iurii Zaikin <yzaikin@google.com>
Signed-off-by: Iurii Zaikin <yzaikin@google.com>
Co-developed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h
lib/kunit/Makefile
lib/kunit/executor.c [new file with mode: 0644]
lib/kunit/test.c