<?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>10588</bug_id>
          
          <creation_ts>2016-11-02 20:17:32 +0000</creation_ts>
          <short_desc>Exporting Tests section can lead to failed tests without proper specification</short_desc>
          <delta_ts>2016-11-15 00:55:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>9</classification_id>
          <classification>Documentation</classification>
          <product>Mega Manual</product>
          <component>mega-manual</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>14 Nov 2016: RESOLVED</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>2.3 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Scott Rifenbark">srifenbark</assigned_to>
          <cc>mariano.lopez</cc>
    
    <cc>srifenbark</cc>
          
          <qa_contact name="Benjamin Esquivel">benjamin.esquivel</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Done (doc changes complete)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>67878</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-02 20:17:32 +0000</bug_when>
    <thetext>The mega manual section[1] states:

&quot;&quot;&quot;
If your image is already built, make sure the following are set in your local.conf file. Be sure to provide the IP address you need:

     INHERIT +=&quot;testexport&quot;
     TEST_TARGET_IP = &quot;192.168.7.2&quot;
     TEST_SERVER_IP = &quot;192.168.7.1&quot;
                
You can then export the tests with the following:

     $ bitbake core-image-sato -c testexport
                
Exporting the tests places them in the Build Directory in tmp/testexport/core-image-sato, which is controlled by the TEST_EXPORT_DIR variable.
&quot;&quot;&quot;

This can lead to failures or confusion, at the first paragraph it is accepted that any image can be used then at further instructions it is locked-up to a particular image, in this case core-image-sato. The failure is at the test list exporting because no matter what image is selected for testing, the core-image-sato test list will be obtained always.

I will place a suggestion in the next comment.   

[1] http://www.yoctoproject.org/docs/2.2/mega-manual/mega-manual.html#exporting-tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67879</commentid>
    <comment_count>1</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-02 20:26:30 +0000</bug_when>
    <thetext>Suggestion:

&quot;&quot;&quot;
You can export tests so that they can run independently of the build system. Exporting tests is required if you want to be able to hand the test execution off to a scheduler. You can only export tests that are defined in TEST_SUITES.

If your image is already built (assuming core-image-sato for further instructions), make sure the following variables are set in your local.conf file:

     INHERIT +=&quot;testexport&quot;
     TEST_TARGET_IP = &quot;192.168.7.2&quot;
     TEST_SERVER_IP = &quot;192.168.7.1&quot;
                
Take into account that these are example IP addresses, it is required to be check these addresses correspond to the server and the target. The correct setup can be verified executing the ping command from host to target and from target to host.

You can then export the tests with the following:

     $ bitbake core-image-sato -c testexport
                
Exporting the tests places them in the Build Directory in tmp/testexport/core-image-sato, which can be controlled via the TEST_EXPORT_DIR variable.
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67939</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-11-03 21:12:32 +0000</bug_when>
    <thetext>Benjamin, 

See http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#exporting-tests and let me know what you think.  

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67942</commentid>
    <comment_count>3</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-11-03 21:53:07 +0000</bug_when>
    <thetext>It looks good to me. I&apos;d appreciate Mariano&apos;s input as well since he wrote the feature.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68101</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-11-08 16:54:28 +0000</bug_when>
    <thetext>Added myself to the CC list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68114</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-11-08 17:26:44 +0000</bug_when>
    <thetext>It is clearer specifying sato as the image for the example, but now it can be confusing with this part:

&quot;&quot;&quot;
Take into account that these are example IP addresses, it is required to be check these addresses correspond to the server and the target. The correct setup can be verified executing the ping command from host to target and from target to host.
&quot;&quot;&quot;

I would add:

&quot;&quot;&quot;
The IP address here will be kept as the default IPs in the configuration file generated to run the test, but can be override using the script to run the test (runexported.py)
&quot;&quot;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68143</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-11-08 18:16:45 +0000</bug_when>
    <thetext>Mariano, 

Are you looking at http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#exporting-tests for the new updates?  I don&apos;t see the following in the current version of the manual:

&quot;&quot;&quot;
Take into account that these are example IP addresses, it is required to be check these addresses correspond to the server and the target. The correct setup can be verified executing the ping command from host to target and from target to host.
&quot;&quot;&quot;

Is your last comment still valid about adding the following:

&quot;&quot;&quot;
The IP address here will be kept as the default IPs in the configuration file generated to run the test, but can be override using the script to run the test (runexported.py)
&quot;&quot;&quot;

Thanks,
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68157</commentid>
    <comment_count>7</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-11-08 20:07:19 +0000</bug_when>
    <thetext>(In reply to comment #6)
&gt; Mariano, 
&gt; 
&gt; Are you looking at
&gt; http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#exporting-
&gt; tests for the new updates?  I don&apos;t see the following in the current version
&gt; of the manual:
&gt; 
I was referring to Benjamin&apos;s comment on how should end the documentation, not the current manual.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68311</commentid>
    <comment_count>8</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2016-11-15 00:55:36 +0000</bug_when>
    <thetext>Setting to RESOLVED and putting the doc flag to &quot;done.&quot;

Scott</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>