Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] oe-selftest: add new test for image manifest file creation
@ 2014-03-05  8:28 Alexandru Palalau
  2014-03-05  8:40 ` Alexandru Palalau
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandru Palalau @ 2014-03-05  8:28 UTC (permalink / raw)
  To: openembedded-core

Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
---
 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..b78d2a7 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-basic")
+        imagename = get_bb_var("IMAGE_LINK_NAME", target="core-image-basic")
+        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)
-- 
1.8.3.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] oe-selftest: add new test for image manifest file creation
  2014-03-05  8:28 [PATCH] oe-selftest: add new test for image manifest file creation Alexandru Palalau
@ 2014-03-05  8:40 ` Alexandru Palalau
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandru Palalau @ 2014-03-05  8:40 UTC (permalink / raw)
  To: openembedded-core

Scratch that, will send V2
On 3/5/2014 10:28 AM, Alexandru Palalau wrote:
> Signed-off-by: Alexandru Palalau <alexandrux.palalau@linux.intel.com>
> ---
>   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..b78d2a7 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-basic")
> +        imagename = get_bb_var("IMAGE_LINK_NAME", target="core-image-basic")
> +        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)
>


-- 
Alexandru Palalau


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-03-05  8:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-05  8:28 [PATCH] oe-selftest: add new test for image manifest file creation Alexandru Palalau
2014-03-05  8:40 ` Alexandru Palalau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox