summaryrefslogtreecommitdiff
path: root/meta/lib/oeqa/selftest
diff options
context:
space:
mode:
authorAlexandru Palalau <alexandrux.palalau@linux.intel.com>2014-03-05 10:55:14 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-05 15:24:06 +0000
commit1542470fa66884d0f7bf67d92916675a8a9820cc (patch)
tree4e0f31104b31fc08d93f96e722c541d89a70fd9a /meta/lib/oeqa/selftest
parentb09a9a5f298596795f17243e5ffcf7dab295a8e6 (diff)
downloadopenembedded-core-1542470fa66884d0f7bf67d92916675a8a9820cc.tar.gz
openembedded-core-1542470fa66884d0f7bf67d92916675a8a9820cc.tar.bz2
openembedded-core-1542470fa66884d0f7bf67d92916675a8a9820cc.zip
oe-selftest: add test for image manifest file creation
Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest')
-rw-r--r--meta/lib/oeqa/selftest/bbtests.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index 01e0099644..7ca0802428 100644
--- a/meta/lib/oeqa/selftest/bbtests.py
+++ b/meta/lib/oeqa/selftest/bbtests.py
@@ -74,6 +74,13 @@ class BitbakeTests(oeSelfTest):
for f in ['pn-buildlist', 'pn-depends.dot', 'package-depends.dot', 'task-depends.dot']:
os.remove(f)
+ def test_image_manifest(self):
+ bitbake('core-image-minimal')
+ deploydir = get_bb_var("DEPLOY_DIR_IMAGE", target="core-image-minimal")
+ imagename = get_bb_var("IMAGE_LINK_NAME", target="core-image-minimal")
+ manifest = os.path.join(deploydir, imagename + ".manifest")
+ self.assertTrue(os.path.islink(manifest), msg="No manifest file created for image")
+
def test_invalid_recipe_src_uri(self):
data = 'SRC_URI = "file://invalid"'
self.write_recipeinc('man', data)