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 /include/kunit/test.h | |
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 'include/kunit/test.h')
-rw-r--r-- | include/kunit/test.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/kunit/test.h b/include/kunit/test.h index fe79cd736e94..b163b9984b33 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -253,6 +253,7 @@ struct kunit_suite { struct dentry *debugfs; struct string_stream *log; int suite_init_err; + bool is_init; }; /* Stores an array of suites, end points one past the end */ |