summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-08-31 00:14:26 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-30 23:26:26 +0100
commit4f7b72a07dea986103ec5bf5d088dba36f4f1b3c (patch)
tree8f42df610ecf41dda09487f5109fec05691fbe24 /meta/lib
parent7c0940196cf6c0cf83729d339da461e5aba670de (diff)
downloadpoky-4f7b72a07dea986103ec5bf5d088dba36f4f1b3c.tar.gz
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. (From OE-Core rev: 9d12fe44fdb52aeb8aa2c5c2c83175a06a0c7224) Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/wic.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index fe8a2d06f4..deb2333e05 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -188,3 +188,17 @@ class Wic(oeSelfTest):
188 for var in wicvars: 188 for var in wicvars:
189 self.assertTrue(var in content, "%s is not in .env file" % var) 189 self.assertTrue(var in content, "%s is not in .env file" % var)
190 self.assertTrue(content[var]) 190 self.assertTrue(content[var])
191
192 def test20_wic_image_type(self):
193 """Test building wic images by bitbake"""
194 self.assertEqual(0, bitbake('wic-image-minimal').status)
195
196 deploy_dir = get_bb_var('DEPLOY_DIR_IMAGE')
197 machine = get_bb_var('MACHINE')
198 prefix = os.path.join(deploy_dir, 'wic-image-minimal-%s.' % machine)
199 # check if we have result image and manifests symlinks
200 # pointing to existing files
201 for suffix in ('wic.bz2', 'manifest'):
202 path = prefix + suffix
203 self.assertTrue(os.path.islink(path))
204 self.assertTrue(os.path.isfile(os.path.realpath(path)))