Bug 8868 - Add option to oe-selftest to list all tests in a comprehensive manner
Summary: Add option to oe-selftest to list all tests in a comprehensive manner
Status: VERIFIED FIXED
Alias: None
Product: Build Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 2.0
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.1 M2
Assignee: Daniel Istrate
QA Contact: Bogdan Alexandru Voiculescu
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-01-04 15:38 UTC by Daniel Istrate
Modified: 2016-01-15 13:35 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: New (Never tested)
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Istrate 2016-01-04 15:38:12 UTC
Add option to oe-selftest to list all available test cases in a comprehensive manner.
The output should provide info about test name, id, class, module and total of tests. Something similar to --list-tests-by option.
Comment 2 Ross Burton 2016-01-07 16:07:06 UTC
Fixed in oe-core 8b9ea3ee39bceef7ee6faeef64f33bd9dbad2e4b.
Comment 3 Bogdan Alexandru Voiculescu 2016-01-15 13:35:47 UTC
Verified on master (b567235c0ce427e2cd478a0268a295c74208e917") using all command bellow: 

      1. Can list tests based on different criteria:
       --list-tests-by <name|class|module|id|tag> <list of tests|classes|modules|ids|tags>
       eg: --list-tests-by module imagefeatures signing recipetool
           --list-tests-by id 1377 1273 935
           --list-tests-by tag wic sstate bitbake
     2. Can list all tags that have been set to test cases:
       --list-tags
       The list of tags should be kept as minimal as possible.
       This helps preview the tags used so far.

       To take advantage of the 'tag' feature:
       - add @tag(feature=<>) to testcases
       eg: @tag(feature='signing') for a single tag
           @tag(feature=(('signing', 'sstate')) for multiple tags