kunit: add is_init test attribute
authorRae Moar <rmoar@google.com>
Wed, 13 Dec 2023 19:44:19 +0000 (19:44 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Mon, 18 Dec 2023 20:21:15 +0000 (13:21 -0700)
commit6c4ea2f48de9860217ddfedee081d485dbeea7e8
tree40d44e02646f0b498cef60a2e38ce3aedaba5f98
parent2cf45281570f76f973bd8d17596684d1875002df
kunit: add is_init test attribute

Add is_init test attribute of type bool. Add to_string, get, and filter
methods to lib/kunit/attributes.c.

Mark each of the tests in the init section with the is_init=true attribute.

Add is_init to the attributes documentation.

Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Documentation/dev-tools/kunit/running_tips.rst
include/kunit/test.h
lib/kunit/attributes.c
lib/kunit/executor.c