<?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>8332</bug_id>
          
          <creation_ts>2015-09-18 17:02:21 +0000</creation_ts>
          <short_desc>QA: Add a broken recipe for testing purposes</short_desc>
          <delta_ts>2020-01-30 16:23:58 +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>5.99</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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          <blocked>6370</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Cristian Iorga">cristian.iorga</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>akuster</cc>
    
    <cc>benjamin.esquivel</cc>
    
    <cc>bogdanx.a.voiculescu</cc>
    
    <cc>georgex.l.musat</cc>
    
    <cc>jose.perez.carranza</cc>
    
    <cc>joshuagloe</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
          
          <qa_contact name="Apoorv">apoorv.sangal</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>54294</commentid>
    <comment_count>0</comment_count>
    <who name="Cristian Iorga">cristian.iorga</who>
    <bug_when>2015-09-18 17:02:21 +0000</bug_when>
    <thetext>Based on /meta-selftest/recipes-test/emptytest/emptytest.bb, manipulate this recipe so that, for example, it breaks during compile phase.

See: https://wiki.yoctoproject.org/wiki/Oe-selftest#appending_to_a_recipe and 
meta/lib/oeqa/selftest/lic-checksum.py
for details on how to manipulate the recipe.

This can be used for bitbake/toaster/etc testing.

Example of test:
Basic test case that tries bitbaking the broken recipe and verifies that it fails in the expected way.

This can be expanded with test on broken patching, broken web location for the tarball, etc.

Another approach would be a fixed broken recipe that can be used for this kind of tests (one for each kind of test).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54619</commentid>
    <comment_count>1</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2015-09-24 14:28:14 +0000</bug_when>
    <thetext>Why not create a selftest that would add some broken data into an existing recipe and try and build it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>58724</commentid>
    <comment_count>2</comment_count>
    <who name="Alexandru Georgescu">alexandru.c.georgescu</who>
    <bug_when>2016-02-08 13:40:01 +0000</bug_when>
    <thetext>This may fit into Daniel&apos;s work for bug 6370 (recipe testing).
Basically this is the part where we add tests for bug 6370.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76343</commentid>
    <comment_count>3</comment_count>
    <who name="Jose Perez C">jose.perez.carranza</who>
    <bug_when>2017-08-30 15:51:48 +0000</bug_when>
    <thetext>Moved to 2.5 due resources constraint</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>85931</commentid>
    <comment_count>4</comment_count>
    <who name="Armin Kuster">akuster</who>
    <bug_when>2019-12-22 20:39:42 +0000</bug_when>
    <thetext>maybe still something to look in to ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86200</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2020-01-30 16:23:58 +0000</bug_when>
    <thetext>Added in oe-core 1810d4ab3374d833cb4b68388b456dc7ddb3d685.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>