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>
This commit is contained in:
parent
7c0940196c
commit
4f7b72a07d
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue