[OE-core] [PATCH V4 1/2] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS
Burton, Ross
ross.burton at intel.com
Mon Dec 11 17:31:23 UTC 2017
On 8 December 2017 at 21:03, Jair Gonzalez <
jair.de.jesus.gonzalez.plascencia at linux.intel.com> wrote:
> + def test_image_gen_debugfs(self):
> + """
> + Summary: Check debugfs generation
> + Expected: 1. core-image-minimal can be build with
> IMAGE_GEN_DEBUGFS variable set
> + 2. debug filesystem is created when variable set
> + Product: oe-core
> + Author: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
> + """
> +
> + image_name = 'core-image-minimal'
> + deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE')
> +
> + features = 'IMAGE_GEN_DEBUGFS = "1"\n'
> + features += 'IMAGE_FSTYPES_DEBUGFS = "tar.bz2"'
> + self.write_config(features)
> +
> + bitbake(image_name)
> + debug_files = glob.glob(os.path.join(deploy_
> dir_image,"*-dbg.rootfs.tar.bz2"))
> + self.assertNotEqual(len(debug_files), 0, 'debug filesystem not
> generated')
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.
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20171211/338adb27/attachment-0002.html>
More information about the Openembedded-core
mailing list