2019-09-23 02:02:43 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-11-03 10:47:38 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
|
|
|
|
|
2021-01-14 16:39:12 -08:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
|
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-01-14 16:39:11 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2021-01-14 16:39:11 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-01-14 16:39:11 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-01-14 16:39:11 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
kunit: tool: print summary of failed tests if a few failed out of a lot
E.g. all the hw_breakpoint tests are failing right now.
So if I run `kunit.py run --altests --arch=x86_64`, then I see
> Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
Seeing which 9 tests failed out of the hundreds is annoying.
If my terminal doesn't have scrollback support, I have to resort to
looking at `.kunit/test.log` for the `not ok` lines.
Teach kunit.py to print a summarized list of failures if the # of tests
reachs an arbitrary threshold (>=100 tests).
To try and keep the output from being too long/noisy, this new logic
a) just reports "parent_test failed" if every child test failed
b) won't print anything if there are >10 failures (also arbitrary).
With this patch, we get an extra line of output showing:
> Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
> Failures: hw_breakpoint
This also works with parameterized tests, e.g. if I add a fake failure
> Failures: kcsan.test_atomic_builtins_missing_barrier.threads=6
Note: we didn't have enough tests for this to be a problem before.
But with commit 980ac3ad0512 ("kunit: tool: rename all_test_uml.config,
use it for --alltests"), --alltests works and thus running >100 tests
will probably become more common.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-10-28 14:02:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:13 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
|
|
|
|
|
2020-08-04 13:47:44 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-11-03 10:47:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-03 10:47:38 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
kunit: tool: update test counts summary line format
Before:
> Testing complete. Passed: 137, Failed: 0, Crashed: 0, Skipped: 36, Errors: 0
After:
> Testing complete. Ran 173 tests: passed: 137, skipped: 36
Even with our current set of statuses, the output is a bit verbose.
It could get worse in the future if we add more (e.g. timeout, kasan).
Let's only print the relevant ones.
I had previously been sympathetic to the argument that always
printing out all the statuses would make it easier to parse results.
But now we have commit acd8e8407b8f ("kunit: Print test statistics on
failure"), there are test counts printed out in the raw output.
We don't currently print out an overall total across all suites, but it
would be easy to add, if we see a need for that.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Co-developed-by: David Gow <davidgow@google.com>
Signed-off-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-04-08 14:51:05 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2021-10-07 14:14:17 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
kunit: tool: Add command line interface to filter and report attributes
Add ability to kunit.py to filter attributes and report a list of tests
including attributes without running tests.
Add flag "--filter" to input filters on test attributes. Tests will be
filtered out if they do not match all inputted filters.
Example: --filter speed=slow (This filter would run only the tests that are
marked as slow)
Filters have operations: <, >, <=, >=, !=, and =. But note that the
characters < and > are often interpreted by the shell, so they may need to
be quoted or escaped.
Example: --filter "speed>slow" or --filter speed\>slow (This filter would
run only the tests that have the speed faster than slow.
Additionally, multiple filters can be used.
Example: --filter "speed=slow, module!=example" (This filter would run
only the tests that have the speed slow and are not in the "example"
module)
Note if the user wants to skip filtered tests instead of not
running/showing them use the "--filter_action=skip" flag instead.
Expose the output of kunit.action=list option with flag "--list_tests" to
output a list of tests. Additionally, add flag "--list_tests_attr" to
output a list of tests and their attributes. These flags are useful to see
tests and test attributes without needing to run tests.
Example of the output of "--list_tests_attr":
example
example.test_1
example.test_2
# example.test_2.speed: slow
This output includes a suite, example, with two test cases, test_1 and
test_2. And in this instance test_2 has been marked as slow.
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-07-25 21:25:16 +00:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
|
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2022-08-10 16:02:58 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
kunit: tool: Add command line interface to filter and report attributes
Add ability to kunit.py to filter attributes and report a list of tests
including attributes without running tests.
Add flag "--filter" to input filters on test attributes. Tests will be
filtered out if they do not match all inputted filters.
Example: --filter speed=slow (This filter would run only the tests that are
marked as slow)
Filters have operations: <, >, <=, >=, !=, and =. But note that the
characters < and > are often interpreted by the shell, so they may need to
be quoted or escaped.
Example: --filter "speed>slow" or --filter speed\>slow (This filter would
run only the tests that have the speed faster than slow.
Additionally, multiple filters can be used.
Example: --filter "speed=slow, module!=example" (This filter would run
only the tests that have the speed slow and are not in the "example"
module)
Note if the user wants to skip filtered tests instead of not
running/showing them use the "--filter_action=skip" flag instead.
Expose the output of kunit.action=list option with flag "--list_tests" to
output a list of tests. Additionally, add flag "--list_tests_attr" to
output a list of tests and their attributes. These flags are useful to see
tests and test attributes without needing to run tests.
Example of the output of "--list_tests_attr":
example
example.test_1
example.test_2
# example.test_2.speed: slow
This output includes a suite, example, with two test cases, test_1 and
test_2. And in this instance test_2 has been marked as slow.
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-07-25 21:25:16 +00:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-28 16:12:34 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-28 16:12:34 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-02 00:30:11 -07:00
|
|
|
|
|
|
|
|
|
2021-06-24 23:58:13 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-28 16:12:34 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2022-11-28 16:12:34 -08:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: tool: Add command line interface to filter and report attributes
Add ability to kunit.py to filter attributes and report a list of tests
including attributes without running tests.
Add flag "--filter" to input filters on test attributes. Tests will be
filtered out if they do not match all inputted filters.
Example: --filter speed=slow (This filter would run only the tests that are
marked as slow)
Filters have operations: <, >, <=, >=, !=, and =. But note that the
characters < and > are often interpreted by the shell, so they may need to
be quoted or escaped.
Example: --filter "speed>slow" or --filter speed\>slow (This filter would
run only the tests that have the speed faster than slow.
Additionally, multiple filters can be used.
Example: --filter "speed=slow, module!=example" (This filter would run
only the tests that have the speed slow and are not in the "example"
module)
Note if the user wants to skip filtered tests instead of not
running/showing them use the "--filter_action=skip" flag instead.
Expose the output of kunit.action=list option with flag "--list_tests" to
output a list of tests. Additionally, add flag "--list_tests_attr" to
output a list of tests and their attributes. These flags are useful to see
tests and test attributes without needing to run tests.
Example of the output of "--list_tests_attr":
example
example.test_1
example.test_2
# example.test_2.speed: slow
This output includes a suite, example, with two test cases, test_1 and
test_2. And in this instance test_2 has been marked as slow.
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-07-25 21:25:16 +00:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2020-08-04 13:47:44 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2022-11-30 10:54:19 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
kunit: tool: print summary of failed tests if a few failed out of a lot
E.g. all the hw_breakpoint tests are failing right now.
So if I run `kunit.py run --altests --arch=x86_64`, then I see
> Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
Seeing which 9 tests failed out of the hundreds is annoying.
If my terminal doesn't have scrollback support, I have to resort to
looking at `.kunit/test.log` for the `not ok` lines.
Teach kunit.py to print a summarized list of failures if the # of tests
reachs an arbitrary threshold (>=100 tests).
To try and keep the output from being too long/noisy, this new logic
a) just reports "parent_test failed" if every child test failed
b) won't print anything if there are >10 failures (also arbitrary).
With this patch, we get an extra line of output showing:
> Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
> Failures: hw_breakpoint
This also works with parameterized tests, e.g. if I add a fake failure
> Failures: kcsan.test_atomic_builtins_missing_barrier.threads=6
Note: we didn't have enough tests for this to be a problem before.
But with commit 980ac3ad0512 ("kunit: tool: rename all_test_uml.config,
use it for --alltests"), --alltests works and thus running >100 tests
will probably become more common.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-10-28 14:02:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2022-05-09 13:49:09 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
kunit: tool: print summary of failed tests if a few failed out of a lot
E.g. all the hw_breakpoint tests are failing right now.
So if I run `kunit.py run --altests --arch=x86_64`, then I see
> Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
Seeing which 9 tests failed out of the hundreds is annoying.
If my terminal doesn't have scrollback support, I have to resort to
looking at `.kunit/test.log` for the `not ok` lines.
Teach kunit.py to print a summarized list of failures if the # of tests
reachs an arbitrary threshold (>=100 tests).
To try and keep the output from being too long/noisy, this new logic
a) just reports "parent_test failed" if every child test failed
b) won't print anything if there are >10 failures (also arbitrary).
With this patch, we get an extra line of output showing:
> Testing complete. Ran 408 tests: passed: 392, failed: 9, skipped: 7
> Failures: hw_breakpoint
This also works with parameterized tests, e.g. if I add a fake failure
> Failures: kcsan.test_atomic_builtins_missing_barrier.threads=6
Note: we didn't have enough tests for this to be a problem before.
But with commit 980ac3ad0512 ("kunit: tool: rename all_test_uml.config,
use it for --alltests"), --alltests works and thus running >100 tests
will probably become more common.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-10-28 14:02:56 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: tool: Add command line interface to filter and report attributes
Add ability to kunit.py to filter attributes and report a list of tests
including attributes without running tests.
Add flag "--filter" to input filters on test attributes. Tests will be
filtered out if they do not match all inputted filters.
Example: --filter speed=slow (This filter would run only the tests that are
marked as slow)
Filters have operations: <, >, <=, >=, !=, and =. But note that the
characters < and > are often interpreted by the shell, so they may need to
be quoted or escaped.
Example: --filter "speed>slow" or --filter speed\>slow (This filter would
run only the tests that have the speed faster than slow.
Additionally, multiple filters can be used.
Example: --filter "speed=slow, module!=example" (This filter would run
only the tests that have the speed slow and are not in the "example"
module)
Note if the user wants to skip filtered tests instead of not
running/showing them use the "--filter_action=skip" flag instead.
Expose the output of kunit.action=list option with flag "--list_tests" to
output a list of tests. Additionally, add flag "--list_tests_attr" to
output a list of tests and their attributes. These flags are useful to see
tests and test attributes without needing to run tests.
Example of the output of "--list_tests_attr":
example
example.test_1
example.test_2
# example.test_2.speed: slow
This output includes a suite, example, with two test cases, test_1 and
test_2. And in this instance test_2 has been marked as slow.
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-07-25 21:25:16 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2021-11-02 00:30:12 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-11-02 00:30:12 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2019-09-23 02:02:43 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
|
|
|
|
|
2021-11-02 00:30:12 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-11-02 00:30:12 -07:00
|
|
|
|
2022-05-12 11:35:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
kunit: tool: Add command line interface to filter and report attributes
Add ability to kunit.py to filter attributes and report a list of tests
including attributes without running tests.
Add flag "--filter" to input filters on test attributes. Tests will be
filtered out if they do not match all inputted filters.
Example: --filter speed=slow (This filter would run only the tests that are
marked as slow)
Filters have operations: <, >, <=, >=, !=, and =. But note that the
characters < and > are often interpreted by the shell, so they may need to
be quoted or escaped.
Example: --filter "speed>slow" or --filter speed\>slow (This filter would
run only the tests that have the speed faster than slow.
Additionally, multiple filters can be used.
Example: --filter "speed=slow, module!=example" (This filter would run
only the tests that have the speed slow and are not in the "example"
module)
Note if the user wants to skip filtered tests instead of not
running/showing them use the "--filter_action=skip" flag instead.
Expose the output of kunit.action=list option with flag "--list_tests" to
output a list of tests. Additionally, add flag "--list_tests_attr" to
output a list of tests and their attributes. These flags are useful to see
tests and test attributes without needing to run tests.
Example of the output of "--list_tests_attr":
example
example.test_1
example.test_2
# example.test_2.speed: slow
This output includes a suite, example, with two test cases, test_1 and
test_2. And in this instance test_2 has been marked as slow.
Reviewed-by: David Gow <davidgow@google.com>
Signed-off-by: Rae Moar <rmoar@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2023-07-25 21:25:16 +00:00
|
|
|
|
2022-05-12 11:35:37 -07:00
|
|
|
|
|
|
|
|
|
2021-11-02 00:30:12 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2020-08-04 13:47:44 -07:00
|
|
|
|
2021-12-14 11:26:12 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-05-12 11:35:38 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2021-12-14 11:26:12 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2021-05-26 01:22:17 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-03-29 14:42:48 -07:00
|
|
|
|
2022-11-10 19:18:55 -08:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2020-08-04 13:47:44 -07:00
|
|
|
|
2022-11-23 18:25:57 +00:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
|
|
|
|
|
2022-05-16 12:47:30 -07:00
|
|
|
|
2021-10-11 14:50:37 -07:00
|
|
|
|
2021-12-14 11:26:12 -08:00
|
|
|
|