imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS
v2 cover imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS
Patch to add a testcase for IMAGE_GEN_DEBUGFS variable. Checks if debug filesystem was created.
The following changes since commit 9ea5a31776440abd6468f003c5e1905f079446d3:
ovmf: fix secureboot PACKAGECONFIG + OpenSSL update (2017-06-16 10:58:23 +0100)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib humberto/ImageGenDebugfs
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=humberto/ImageGenDebugfs
Humberto Ibarra (1):
imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS
meta/lib/oeqa/selftest/cases/imagefeatures.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
Signature · 1 line
2.7.5
PATCH v2 1/1 imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS
Add new testcase to check varibale IMAGE_GEN_DEBUGFS. Test makes sure that debug filesystem is created accordingly.
[YOCTO #10906]
--- meta/lib/oeqa/selftest/cases/imagefeatures.py | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
meta/lib/oeqa/selftest/cases/imagefeatures.py +26 -0
@@ -3,6 +3,7 @@ from oeqa.utils.commands import runCmd, bitbake, get_bb_var, runqemu from oeqa.core.decorator.oeid import OETestID from oeqa.utils.sshcontrol import SSHControl import os +import glob class ImageFeatures(OESelftestTestCase):
@@ -123,3 +124,28 @@ class ImageFeatures(OESelftestTestCase): # check if result image is sparse image_stat = os.stat(image_path) self.assertTrue(image_stat.st_size > image_stat.st_blocks * 512) + + 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 <[email protected]> + """ + + image_name = 'core-image-minimal' + clean_cmd = '-c clean %s' % image_name + deploy_dir_image = get_bb_var('DEPLOY_DIR_IMAGE') + + for pack_class in [ "rpm", "deb", "ipk"]: + bitbake(clean_cmd) + features = 'IMAGE_GEN_DEBUGFS = "1"\n' + features += 'IMAGE_FSTYPES_DEBUGFS = "tar.bz2"\n' + features += 'PACKAGE_CLASSES = "package_%s"' % pack_class + 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 for %s' % pack_class)
Signature · 1 line
2.7.5