<?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>4435</bug_id>
          
          <creation_ts>2013-04-29 15:44:40 +0000</creation_ts>
          <short_desc>Rework qemuimagetest implementation</short_desc>
          <delta_ts>2013-10-01 11:32:57 +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.5</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5</target_milestone>
          
          <blocked>4137</blocked>
    
    <blocked>4686</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Stefan Stanacar">sstncr</assigned_to>
          <cc>alexandrux.palalau</cc>
    
    <cc>sgw</cc>
    
    <cc>venkatarg</cc>
          
          
          <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>32725</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2013-04-29 15:44:40 +0000</bug_when>
    <thetext>Evaluate the current qemuimagetest implementation and look at rewriting it using a proper testing framework such as python&apos;s unittest. We need to satisfy the following requirements:

* Preserve the current logic for launching QEMU since it has gone through a lot of revision; however rather than being driven from each test, it would be better for us to have the launching code run once at the start of testing each image and then shut down once at the end rather than doing this in every test case.

* Handle tests against different image types (presumably skip certain tests based checking for the presence/absence of some file in the rootfs)

* Reduce the amount of boilerplate for each test - the less work required to add a test the easier it will be to increase our level of automation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34676</commentid>
    <comment_count>1</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-07-18 16:15:45 +0000</bug_when>
    <thetext>A new class (testimage.bbclass) has been added which can start qemu images, and run a series of python unittests (which replace the runtime scripts found in the old qemuimagetest). 
Initial commits were from 1328d49625e0030e00d09d74d35f57bd87b14a04 till 4285e856aa073979bf046168a75188ccf5a1e7d4.
Some improvements went in 46d3bb502f01f1d0bde967f029a988447c7e6e28 till 3dee534f1e25109e0bdb681de0746c336f4b8840.

That last commit 3dee534f1e25109e0bdb681de0746c336f4b8840 was also run through AB on a weekly build:

http://autobuilder.yoctoproject.org:8011/builders/nightly-x86-64/builds/209/steps/Running%20Sanity%20Tests/logs/stdio
http://autobuilder.yoctoproject.org:8011/builders/nightly-ppc/builds/212/steps/Running%20Sanity%20Tests/logs/stdio

So I guess at this point the basic implementation is done.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36769</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Palalau">alexandrux.palalau</who>
    <bug_when>2013-09-17 09:13:57 +0000</bug_when>
    <thetext>Verified on master branch.
Commit ID: 566ca1e4769b4ec7e3f6c6a98bb817db2221cf82</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37391</commentid>
    <comment_count>3</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-01 11:32:57 +0000</bug_when>
    <thetext>Doc changes here: http://www.yoctoproject.org/docs/latest/dev-manual/dev-manual.html#performing-automated-runtime-testing</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>