linux/Documentation/dev-tools/kunit
Daniel Latypov a127b154a8 kunit: tool: allow filtering test cases via glob
Commit 1d71307a6f ("kunit: add unit test for filtering suites by
names") introduced the ability to filter which suites we run via glob.

This change extends it so we can also filter individual test cases
inside of suites as well.

This is quite useful when, e.g.
* trying to run just the tests cases you've just added or are working on
* trying to debug issues with test hermeticity

Examples:
$ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit '*exec*.parse*'
...
============================================================
======== [PASSED] kunit_executor_test ========
[PASSED] parse_filter_test
============================================================
Testing complete. 1 tests run. 0 failed. 0 crashed.

$ ./tools/testing/kunit/kunit.py run --kunitconfig=lib/kunit '*.no_matching_tests'
...
[ERROR] no tests run!

Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2021-10-19 14:18:49 -06:00
..
api docs: dev-tools: kunit: don't use a table for docs name 2021-06-23 14:19:19 -06:00
faq.rst docs: dev-tools: kunit: avoid using ReST :doc:foo markup 2021-06-17 13:24:37 -06:00
index.rst linux-kselftest-kunit-fixes-5.14-rc1 2021-07-02 12:58:26 -07:00
kunit-tool.rst kunit: tool: make --raw_output support only showing kunit output 2021-08-13 13:32:01 -06:00
running_tips.rst kunit: tool: allow filtering test cases via glob 2021-10-19 14:18:49 -06:00
start.rst linux-kselftest-kunit-fixes-5.14-rc1 2021-07-02 12:58:26 -07:00
style.rst KUnit: Docs: style: fix some Kconfig example issues 2020-11-10 13:39:26 -07:00
tips.rst docs: dev-tools: kunit: avoid using ReST :doc:foo markup 2021-06-17 13:24:37 -06:00
usage.rst linux-kselftest-kunit-fixes-5.14-rc1 2021-07-02 12:58:26 -07:00