<div dir="ltr">On 8 December 2017 at 21:03, Jair Gonzalez <span dir="ltr"><<a href="mailto:jair.de.jesus.gonzalez.plascencia@linux.intel.com" target="_blank">jair.de.jesus.gonzalez.plascencia@linux.intel.com</a>></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>
+ """<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 <<a href="mailto:humberto.ibarra.lopez@intel.com">humberto.ibarra.lopez@intel.<wbr>com</a>><br>
+ """<br>
+<br>
+ image_name = 'core-image-minimal'<br>
+ deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE')<br>
+<br>
+ features = 'IMAGE_GEN_DEBUGFS = "1"\n'<br>
+ features += 'IMAGE_FSTYPES_DEBUGFS = "tar.bz2"'<br>
+ self.write_config(features)<br>
+<br>
+ bitbake(image_name)<br>
+ debug_files = glob.glob(os.path.join(deploy_<wbr>dir_image,"*-dbg.rootfs.tar.<wbr>bz2"))<br>
+ self.assertNotEqual(len(debug_<wbr>files), 0, 'debug filesystem not generated')</blockquote><div><br></div><div>Checking the file exists doesn'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>