<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>8750</bug_id>
          
          <creation_ts>2015-12-02 14:33:09 +0000</creation_ts>
          <short_desc>Allow oe-selftest to run custom test suites based on different criteria</short_desc>
          <delta_ts>2016-02-16 10:45:00 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.1 M1</target_milestone>
          
          <blocked>8647</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Daniel Istrate">daniel.alexandrux.istrate</reporter>
          <assigned_to name="Daniel Istrate">daniel.alexandrux.istrate</assigned_to>
          <cc>alexandru.c.georgescu</cc>
    
    <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>New (Never tested)</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56941</commentid>
    <comment_count>0</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-12-02 14:33:09 +0000</bug_when>
    <thetext>oe-selftest should be able to run custom test suites based on different criteria like: id (test case id (@testcase)), name (test case name), class, module and tag (@tag(feature=(feature list))).

eg: oe-selftest --run-tests-by tag wic bitake recipetool pr-service
    oe-selftest --run-tests-by name test_x test_y test_z
    oe-selftest --run-tests-by id 1001 1002 185 1902
    oe-selftest --run-tests-by class Signing ImageFeatures
    oe-selftest --run-tests-by module wic signing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56942</commentid>
    <comment_count>1</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-12-02 14:43:02 +0000</bug_when>
    <thetext>Patch sent to ML: 
http://lists.openembedded.org/pipermail/openembedded-core/2015-December/113637.html

This patch covers:

1. Can run custom lists of tests based on different criteria:
   --run-tests-by &lt;name|class|module|id|tag&gt; &lt;list of tests|classes|modules|ids|tags&gt;
   eg: --run-tests-by module imagefeatures signing recipetool
       --run-tests-by id 1377 1273 935
       --run-tests-by tag wic sstate bitbake
2. Can list tests based on different criteria:
   --list-tests-by &lt;name|class|module|id|tag&gt; &lt;list of tests|classes|modules|ids|tags&gt;
   eg: --list-tests-by module imagefeatures signing recipetool
       --list-tests-by id 1377 1273 935
       --list-tests-by tag wic sstate bitbake
3. 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 &apos;tag&apos; feature:
   - add @tag(feature=&lt;&gt;) to testcases
   eg: @tag(feature=&apos;signing&apos;) for a single tag
       @tag(feature=((&apos;signing&apos;, &apos;sstate&apos;)) or
       @tag(feature=[&apos;signing&apos;, &apos;sstate&apos;]) for multiple tags</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57065</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-12-07 08:12:46 +0000</bug_when>
    <thetext>Moved to M1 since Daniel already submitted a patch for it in M1.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57067</commentid>
    <comment_count>3</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2015-12-07 08:13:41 +0000</bug_when>
    <thetext>Patches submitted.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57235</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-12-14 07:28:25 +0000</bug_when>
    <thetext>As of b3d6872bf169a13e572638e3809c50a868246616: patch merged into master.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59087</commentid>
    <comment_count>5</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2016-02-16 10:45:00 +0000</bug_when>
    <thetext>Verified with m2.rc1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>