mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 16:11:38 +00:00
434498a6be
Change the KUnit parser to be able to parse test output that complies with the KTAP version 1 specification format found here: https://kernel.org/doc/html/latest/dev-tools/ktap.html. Ensure the parser is able to parse tests with the original KUnit test output format as well. KUnit parser now accepts any of the following test output formats: Original KUnit test output format: TAP version 14 1..1 # Subtest: kunit-test-suite 1..3 ok 1 - kunit_test_1 ok 2 - kunit_test_2 ok 3 - kunit_test_3 # kunit-test-suite: pass:3 fail:0 skip:0 total:3 # Totals: pass:3 fail:0 skip:0 total:3 ok 1 - kunit-test-suite KTAP version 1 test output format: KTAP version 1 1..1 KTAP version 1 1..3 ok 1 kunit_test_1 ok 2 kunit_test_2 ok 3 kunit_test_3 ok 1 kunit-test-suite New KUnit test output format (changes made in the next patch of this series): KTAP version 1 1..1 KTAP version 1 # Subtest: kunit-test-suite 1..3 ok 1 kunit_test_1 ok 2 kunit_test_2 ok 3 kunit_test_3 # kunit-test-suite: pass:3 fail:0 skip:0 total:3 # Totals: pass:3 fail:0 skip:0 total:3 ok 1 kunit-test-suite Signed-off-by: Rae Moar <rmoar@google.com> Reviewed-by: Daniel Latypov <dlatypov@google.com> Reviewed-by: David Gow <davidgow@google.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> |
||
---|---|---|
.. | ||
test_config_printk_time.log | ||
test_insufficient_memory.log | ||
test_interrupted_tap_output.log | ||
test_is_test_passed-all_passed_nested.log | ||
test_is_test_passed-all_passed.log | ||
test_is_test_passed-failure.log | ||
test_is_test_passed-kselftest.log | ||
test_is_test_passed-missing_plan.log | ||
test_is_test_passed-no_tests_no_plan.log | ||
test_is_test_passed-no_tests_run_no_header.log | ||
test_is_test_passed-no_tests_run_with_header.log | ||
test_kernel_panic_interrupt.log | ||
test_multiple_prefixes.log | ||
test_output_isolated_correctly.log | ||
test_output_with_prefix_isolated_correctly.log | ||
test_parse_ktap_output.log | ||
test_parse_subtest_header.log | ||
test_pound_no_prefix.log | ||
test_pound_sign.log | ||
test_read_from_file.kconfig | ||
test_skip_all_tests.log | ||
test_skip_tests.log | ||
test_strip_hyphen.log |