[oe-commits] Ed Bartosh : oe-selftest: test building wic image by bitbake

git at git.openembedded.org git at git.openembedded.org
Mon Aug 31 11:44:14 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 9d12fe44fdb52aeb8aa2c5c2c83175a06a0c7224
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=9d12fe44fdb52aeb8aa2c5c2c83175a06a0c7224

Author: Ed Bartosh <ed.bartosh at linux.intel.com>
Date:   Mon Aug 31 00:14:26 2015 +0300

oe-selftest: test building wic image by bitbake

Added test case to verify building of wic-image-minimal recipe
and produced artifacts: manifest and bzipped partitioned image.

Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/selftest/wic.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index fe8a2d0..deb2333 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -188,3 +188,17 @@ class Wic(oeSelfTest):
             for var in wicvars:
                 self.assertTrue(var in content, "%s is not in .env file" % var)
                 self.assertTrue(content[var])
+
+    def test20_wic_image_type(self):
+        """Test building wic images by bitbake"""
+        self.assertEqual(0, bitbake('wic-image-minimal').status)
+
+        deploy_dir = get_bb_var('DEPLOY_DIR_IMAGE')
+        machine = get_bb_var('MACHINE')
+        prefix = os.path.join(deploy_dir, 'wic-image-minimal-%s.' % machine)
+        # check if we have result image and manifests symlinks
+        # pointing to existing files
+        for suffix in ('wic.bz2', 'manifest'):
+            path = prefix + suffix
+            self.assertTrue(os.path.islink(path))
+            self.assertTrue(os.path.isfile(os.path.realpath(path)))



More information about the Openembedded-commits mailing list