[OE-core] [PATCH V4 1/2] imagefeatures.py: Added testcase to track IMAGE_GEN_DEBUGFS
Jair Gonzalez
jair.de.jesus.gonzalez.plascencia at linux.intel.com
Fri Dec 8 21:03:56 UTC 2017
From: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
Add new testcase to check varibale IMAGE_GEN_DEBUGFS. Test makes
sure that debug filesystem is created accordingly.
[YOCTO #10906]
Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez at intel.com>
---
meta/lib/oeqa/selftest/cases/imagefeatures.py | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
diff --git a/meta/lib/oeqa/selftest/cases/imagefeatures.py b/meta/lib/oeqa/selftest/cases/imagefeatures.py
index 0ffb686..88fdf96 100644
--- a/meta/lib/oeqa/selftest/cases/imagefeatures.py
+++ b/meta/lib/oeqa/selftest/cases/imagefeatures.py
@@ -4,6 +4,7 @@ from oeqa.core.decorator.oeid import OETestID
from oeqa.utils.sshcontrol import SSHControl
import os
import json
+import glob
class ImageFeatures(OESelftestTestCase):
@@ -238,3 +239,23 @@ USERADD_GID_TABLES += "files/static-group"
"""
self.write_config(config)
bitbake("core-image-base")
+
+ 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')
--
2.7.5
More information about the Openembedded-core
mailing list