diff options
| author | Vaibhav Jain <vaibhav@linux.ibm.com> | 2026-06-26 14:28:07 +0530 |
|---|---|---|
| committer | Shuah Khan <skhan@linuxfoundation.org> | 2026-06-29 15:48:26 -0600 |
| commit | 643ec8ff7d8ed15881bd05d71de24208ce0dadcb (patch) | |
| tree | 9aee46fb87451d9204ee6e6e9615f07bae5cb905 /scripts/Makefile.thinlto | |
| parent | 0efe609ef5b6ab286ec296369365efd2b9ce774f (diff) | |
| download | linux-next-643ec8ff7d8ed15881bd05d71de24208ce0dadcb.tar.gz linux-next-643ec8ff7d8ed15881bd05d71de24208ce0dadcb.zip | |
kunit: Add example of test suite that can be skipped at runtime
Add an example test suite name 'example_test_skip_suite' to
'kunit-example-test.c' that shows how to skip an entire test suite based on
runtime conditions.
The example suite 'example_skip_suite' provides a 'suite_init' callback
named example_skip_suite_init() which marks the entire suite as skipped
using kunit_mark_skipped().
This demonstrates a way for conditionally skipping test suites when any
prerequisites for kunit_suite execution are not met. The 'suite_init'
callback can perform any necessary checks and mark the suite as skipped,
preventing all test cases from executing while also indicating why the
suite was skipped.
Link: https://lore.kernel.org/r/20260626085811.151133-3-vaibhav@linux.ibm.com
Reviewed-by: David Gow <david@davidgow.net>
Signed-off-by: Vaibhav Jain <vaibhav@linux.ibm.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
