diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 14 |
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))) | ||