Bug 8916 - oe-selftest: add the ability to run/search tests matched by a search expression
Summary: oe-selftest: add the ability to run/search tests matched by a search expression
Status: RESOLVED FIXED
Alias: None
Product: Test Plans/Suite
Classification: QA/Testing
Component: test-plans/suite (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Medium normal
Target Milestone: 2.1
Assignee: Humberto Ibarra
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-13 16:21 UTC by Benjamin Esquivel
Modified: 2016-03-17 18:28 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Don't know


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.