diff options
author | Rae Moar <rmoar@google.com> | 2023-12-13 22:44:19 +0300 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-12-18 23:21:15 +0300 |
commit | 6c4ea2f48de9860217ddfedee081d485dbeea7e8 (patch) | |
tree | 40d44e02646f0b498cef60a2e38ce3aedaba5f98 /Documentation/dev-tools/kunit | |
parent | 2cf45281570f76f973bd8d17596684d1875002df (diff) | |
download | linux-6c4ea2f48de9860217ddfedee081d485dbeea7e8.tar.xz |
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/kunit')
-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. |