kunit: add support for kunit_suites that reference init code
authorBrendan Higgins <brendanhiggins@google.com>
Tue, 19 Apr 2022 04:05:15 +0000 (21:05 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 27 Apr 2022 00:08:25 +0000 (18:08 -0600)
commit9bf2eed995f9f8136f00110214c120f2d7912ad8
tree52e387d519c62ee9ee5147013ac8ed9008496814
parent59729170afcd4900e08997a482467ffda8d88c7f
kunit: add support for kunit_suites that reference init code

Add support for a new kind of kunit_suite registration macro called
kunit_test_init_section_suite(); this new registration macro allows the
registration of kunit_suites that reference functions marked __init and
data marked __initdata.

Signed-off-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Martin Fernandez <martin.fernandez@eclypsium.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h