<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Thought about testing debug packages because the bug comments mentioned iterating through rpm, deb and ipk. If there is no value to this part I could drop it
 and only test for the debug filesystem. In this cases there any value to check the debug filesystem in all three package classes?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D">Humberto<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif;color:#1F497D"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif">From:</span></b><span style="font-size:11.0pt;font-family:&quot;Calibri&quot;,sans-serif"> Burton, Ross [mailto:ross.burton@intel.com]
<br>
<b>Sent:</b> Friday, June 16, 2017 12:07 PM<br>
<b>To:</b> Ibarra Lopez, Humberto &lt;humberto.ibarra.lopez@intel.com&gt;<br>
<b>Cc:</b> OE-core &lt;openembedded-core@lists.openembedded.org&gt;<br>
<b>Subject:</b> Re: [OE-core] [PATCH 1/1] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS<o:p></o:p></span></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<div>
<p class="MsoNormal">On 16 June 2017 at 18:01, Humberto Ibarra &lt;<a href="mailto:humberto.ibarra.lopez@intel.com" target="_blank">humberto.ibarra.lopez@intel.com</a>&gt; wrote:<o:p></o:p></p>
<blockquote style="border:none;border-left:solid #CCCCCC 1.0pt;padding:0in 0in 0in 6.0pt;margin-left:4.8pt;margin-right:0in">
<div id=":4mc">
<p class="MsoNormal">&#43;&nbsp; &nbsp; &nbsp; &nbsp; image_name = 'core-image-minimal'<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; clean_cmd = '-c clean %s' % image_name<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE')<br>
&#43;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; for pack_class in [ &quot;rpm&quot;, &quot;deb&quot;, &quot;ipk&quot;]:<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bitbake(clean_cmd)<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; features = 'IMAGE_GEN_DEBUGFS = &quot;1&quot;\n'<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; features &#43;= 'IMAGE_FSTYPES_DEBUGFS = &quot;tar.bz2&quot;\n'<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; features &#43;= 'PACKAGE_CLASSES = &quot;package_%s&quot;' % pack_class<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.write_config(features)<br>
&#43;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bitbake(image_name)<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug_files = glob.glob(os.path.join(deploy_dir_image,&quot;*-dbg.rootfs.tar.bz2&quot;))<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.assertNotEqual(len(debug_files), 0,<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'debug filesystem not generated for %s' % pack_class)<br>
&#43;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; deploy_packages_var = 'DEPLOY_DIR_%s' % pack_class.upper()<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; debug_pack_files = glob.glob(os.path.join(get_bb_var(deploy_packages_var),<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; get_bb_var(&quot;MACHINE&quot;).replace(&quot;-&quot;,&quot;_&quot;), &quot;*-dbg*&quot;))<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.assertNotEqual(len(debug_pack_files), 0,<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 'debug packages not generated for %s' % pack_class)<o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><br>
Each call to get_bb_var() is a call to bitbake, so it's best to batch up these as much as possible into a single get_bb_vars() call.<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Also is there any point to checking that dbg packages were created?<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
<div>
<p class="MsoNormal">Ross<o:p></o:p></p>
</div>
</div>
</div>
</body>
</html>