kunit: add example suite to test init suites
authorRae Moar <rmoar@google.com>
Wed, 13 Dec 2023 19:44:18 +0000 (19:44 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 18 Dec 2023 20:21:15 +0000 (13:21 -0700)
commit2cf45281570f76f973bd8d17596684d1875002df
tree3d80aec2f675a255e91713828a209af83bed8baa
parentd81f0d7b8b23ec79f80be602ed6129ded27862e8
kunit: add example suite to test init suites

Add example_init_test_suite to allow for testing the feature of running
test suites marked as init to indicate they use init data and/or
functions.

This suite should always pass and uses a simple init function.

This suite can also be used to test the is_init attribute introduced in
the next patch.

Signed-off-by: Rae Moar <rmoar@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
lib/kunit/kunit-example-test.c