Bug 8916

Summary: oe-selftest: add the ability to run/search tests matched by a search expression
Product: [QA/Testing] Test Plans/Suite Reporter: Benjamin Esquivel <benjamin.esquivel>
Component: test-plans/suiteAssignee: Humberto Ibarra <humberto.ibarra.lopez>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: corneliux.stoicescu
Version: unspecified   
Target Milestone: 2.1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Benjamin Esquivel 2016-01-13 16:21:12 UTC
Currently, the oe-selftest feature for listing/running tests receives parameters that are searched as an entire-word-match.

For example, given that you have the list of tests:

test_name
test_name_a1
test_name_a2
test_name_b1
test_name_b2

if you search a test by name: test_name, it will return test_name. You should be able to search a test by a simple expression: test_name* and would return all the tests that listed.

Other possibilities with simple pattern matching:

test_name_a*
test_name_*1

In these examples, the asterisk wildcard would be used as the regex .* but it could be designed in all his full regex glory, it might just be not so practical to implement/use in that form.