<div dir="ltr">On 8 December 2017 at 21:03, Jair Gonzalez <span dir="ltr">&lt;<a href="mailto:jair.de.jesus.gonzalez.plascencia@linux.intel.com" target="_blank">jair.de.jesus.gonzalez.plascencia@linux.intel.com</a>&gt;</span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">+    def test_image_gen_debugfs(self):<br>
+        &quot;&quot;&quot;<br>
+        Summary:     Check debugfs generation<br>
+        Expected:    1. core-image-minimal can be build with IMAGE_GEN_DEBUGFS variable set<br>
+                     2. debug filesystem is created when variable set<br>
+        Product:     oe-core<br>
+        Author:      Humberto Ibarra &lt;<a href="mailto:humberto.ibarra.lopez@intel.com">humberto.ibarra.lopez@intel.<wbr>com</a>&gt;<br>
+        &quot;&quot;&quot;<br>
+<br>
+        image_name = &#39;core-image-minimal&#39;<br>
+        deploy_dir_image = get_bb_var(&#39;DEPLOY_DIR_IMAGE&#39;)<br>
+<br>
+        features = &#39;IMAGE_GEN_DEBUGFS = &quot;1&quot;\n&#39;<br>
+        features += &#39;IMAGE_FSTYPES_DEBUGFS = &quot;tar.bz2&quot;&#39;<br>
+        self.write_config(features)<br>
+<br>
+        bitbake(image_name)<br>
+        debug_files = glob.glob(os.path.join(deploy_<wbr>dir_image,&quot;*-dbg.rootfs.tar.<wbr>bz2&quot;))<br>
+        self.assertNotEqual(len(debug_<wbr>files), 0, &#39;debug filesystem not generated&#39;)</blockquote><div><br></div><div>Checking the file exists doesn&#39;t really exercise the codepaths, it should at least verify the tarball contains the debug symbols for some packages that are in that image.</div><div><br></div><div>Ross</div></div></div></div>