diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2015-05-20 10:12:39 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2015-05-22 08:45:35 +1000 |
commit | f3d37d96538f7d0b42240eeea11471360c392d89 (patch) | |
tree | b2f714f10a2a126e8ef1cb2e9ca83873ee102bfb /doc | |
parent | b2fd428f969245cd53116c843c6587e06098fce1 (diff) |
test: add filtering to litest framework
Complementary to CK_RUN_SUITE and CK_RUN_CASE, this filters on actual test
function names with a simple fnmatch.
./test/test-touchpad --filter-test="*1fg_tap*"
Most of this patch is renaming litest_add_* to _litest_add_* so we can use the
macros to get at the function names.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/test-suite.dox | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/test-suite.dox b/doc/test-suite.dox index 5bcaee05..079018c0 100644 --- a/doc/test-suite.dox +++ b/doc/test-suite.dox @@ -62,8 +62,12 @@ $ CK_RUN_CASE="wheel only" ./test/test-device $ CK_RUN_SUITE="device:wheel" CK_RUN_CASE="wheel only" ./test/test-device @endcode -Check and litest currently do not provide a way to run a specific test -function only. +The `--filter-test` argument enables selective running of tests through +basic shell-style function name matching. For example: + +@code +$ ./test/test-touchpad --filter-test="*1fg_tap*" +@endcode @section test-verbosity Controlling test output |