diff options
author | Rae Moar <rmoar@google.com> | 2023-12-13 20:44:19 +0100 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-12-18 21:21:15 +0100 |
commit | 6c4ea2f48de9860217ddfedee081d485dbeea7e8 (patch) | |
tree | 40d44e02646f0b498cef60a2e38ce3aedaba5f98 /Documentation/dev-tools | |
parent | kunit: add example suite to test init suites (diff) | |
download | linux-6c4ea2f48de9860217ddfedee081d485dbeea7e8.tar.xz linux-6c4ea2f48de9860217ddfedee081d485dbeea7e8.zip |
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>
Diffstat (limited to 'Documentation/dev-tools')
-rw-r--r-- | Documentation/dev-tools/kunit/running_tips.rst | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Documentation/dev-tools/kunit/running_tips.rst b/Documentation/dev-tools/kunit/running_tips.rst index 766f9cdea0fa..024e9ad1d1e9 100644 --- a/Documentation/dev-tools/kunit/running_tips.rst +++ b/Documentation/dev-tools/kunit/running_tips.rst @@ -428,3 +428,10 @@ This attribute indicates the name of the module associated with the test. This attribute is automatically saved as a string and is printed for each suite. Tests can also be filtered using this attribute. + +``is_init`` + +This attribute indicates whether the test uses init data or functions. + +This attribute is automatically saved as a boolean and tests can also be +filtered using this attribute. |