linux/tools/testing/kunit
David Gow e56e482855 kunit: tool: Report an error if any test has no subtests
It's possible for a test to have a subtest header, but zero valid
subtests. We used to error on this if the test plan had no subtests
listed, but it's possible to have subtests without a test plan (indeed,
this is how parameterised tests work).

Tests with 0 subtests now have the result NO_TESTS, and will report an
error (which does not halt test execution, but is printed in a scary red
colour and is noted in the results summary).

Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-12-13 13:36:15 -07:00
..
configs kunit: Remove the unused all_tests.config 2021-06-23 17:49:41 -06:00
qemu_configs kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
test_data kunit: tool: Report an error if any test has no subtests 2021-12-13 13:36:15 -07:00
.gitignore .gitignore: add SPDX License Identifier 2020-03-25 11:50:48 +01:00
kunit_config.py kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
kunit_json.py kunit: tool: fix --json output for skipped tests 2021-12-13 13:33:30 -07:00
kunit_kernel.py kunit: tool: fix typecheck errors about loading qemu configs 2021-10-29 13:05:47 -06:00
kunit_parser.py kunit: tool: Report an error if any test has no subtests 2021-12-13 13:36:15 -07:00
kunit_tool_test.py kunit: tool: Report an error if any test has no subtests 2021-12-13 13:36:15 -07:00
kunit.py kunit: tool: continue past invalid utf-8 output 2021-10-25 13:06:45 -06:00
qemu_config.py kunit: tool: add support for QEMU 2021-06-11 16:10:23 -06:00
run_checks.py kunit: add run_checks.py script to validate kunit changes 2021-12-13 13:35:22 -07:00