<?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>5554</bug_id>
          
          <creation_ts>2013-11-18 16:55:22 +0000</creation_ts>
          <short_desc>Add abstraction for running tests on real hardware</short_desc>
          <delta_ts>2014-08-19 11:40:58 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.6</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>18 April 2014: Setting documentation flag to &quot;Done&quot;.</status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.6 M1</target_milestone>
          
          <blocked>1596</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Stefan Stanacar">sstncr</assigned_to>
          <cc>bluelightning</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>srifenbark</cc>
          
          <qa_contact name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</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>38879</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-11-18 16:55:22 +0000</bug_when>
    <thetext>Insert some abstraction between the request to run a test and the launching of it in QEMU so that we can also run the test on real hardware. How the test should be run should be able to be set via a variable, and the variable&apos;s value should map to a python class with the implementation of how the image should be deployed and booted.

We should create two initial implementations:
1) A QEMU implementation (does what it does currently)
2) A very simple remote implementation which does not deploy the image but runs the tests on a remote machine via ssh to a specified IP address.

In the current code there&apos;s a fair amount of isolation here already so this shouldn&apos;t be too tricky.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39080</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-11-25 17:56:02 +0000</bug_when>
    <thetext>Patches on the ML.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39219</commentid>
    <comment_count>2</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-12-04 08:08:36 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b4d9b4208b1c06164c4eeea2110408fb404dba1c
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=17e3dc2cb5e7c060647a29a508d43a622ba53b80</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42405</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-08 20:31:10 +0000</bug_when>
    <thetext>Hi, 

I have added several areas to address this documentation part of the bug based on Stefan&apos;s email he sent me.  The new sections need a good review.  I had some difficulty unwrapping the raw information into individual sections so please look it over and comment:

http://www.yoctoproject.org/docs/1.6/dev-manual/dev-manual.html#performing-automated-runtime-testing - This is the main section on running tests in the dev-manual.  It now needs to cover qemu and actual hardware.  I suspect we need to work on this section some more.

These next links are to the new variables.

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#var-TEST_TARGET

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#TEST_TARGET_IP

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#TEST_SERVER_IP

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#TEST_LOG_DIR

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#TEST_EXPORT_ONLY

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#TEST_EXPORT_DIR</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42573</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-10 19:12:38 +0000</bug_when>
    <thetext>Hi, 

I realized that this area in the manual also needed adjusting based on the ability to now run tests on hardware - http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#ref-classes-testimage.  I basically removed the note that indicated the class only supported running tests with QEMU, excluding hardware. 

Please add this link to the review as well. 

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42620</commentid>
    <comment_count>5</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-11 15:50:38 +0000</bug_when>
    <thetext>Hi, 

I incorporated both your sets of comments (Paul and Stefan) and sent out emails with notes.  Can you guys look the changes over to approve?

http://www.yoctoproject.org/docs/1.6/dev-manual/dev-manual.html#hardware-image-enabling-tests

In that link above, there is one item I need more information on from Stefan.  I have your name in there... you will see it.

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#var-TEST_IMAGE

http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#var-TEST_TARGET

Thanks, 
Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42745</commentid>
    <comment_count>6</comment_count>
    <who name="Scott Rifenbark">srifenbark</who>
    <bug_when>2014-04-18 16:08:41 +0000</bug_when>
    <thetext>Hi, 

I worked with Stefan here to update the section on running tests.  We are good now with it all.  See http://www.yoctoproject.org/docs/1.6/dev-manual/dev-manual.html#performing-automated-runtime-testing.

Setting the doc flag to &quot;Done&quot;.

Scott</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>45170</commentid>
    <comment_count>7</comment_count>
    <who name="Bogdan Alexandru Voiculescu">bogdanx.a.voiculescu</who>
    <bug_when>2014-08-19 11:40:58 +0000</bug_when>
    <thetext>Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>