[oe-commits] Alexandru Palalau : oe-selftest: add test for image manifest file creation

git at git.openembedded.org git at git.openembedded.org
Wed Mar 5 12:36:50 UTC 2014


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

Author: Alexandru Palalau <alexandrux.palalau at linux.intel.com>
Date:   Wed Mar  5 10:55:14 2014 +0200

oe-selftest: add test for image manifest file creation

Signed-off-by: Alexandru Palalau <alexandrux.palalau at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

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

diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py
index 01e0099..7ca0802 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)



More information about the Openembedded-commits mailing list