Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Ed Bartosh <ed.bartosh@linux.intel.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH 4/5] oe-selftest: test building wic image by bitbake
Date: Mon, 31 Aug 2015 00:14:26 +0300	[thread overview]
Message-ID: <697d9e85a031e765a4e4297ebd06d970eaefa02b.1440969020.git.ed.bartosh@linux.intel.com> (raw)
In-Reply-To: <cover.1440969020.git.ed.bartosh@linux.intel.com>
In-Reply-To: <cover.1440969020.git.ed.bartosh@linux.intel.com>

Added test case to verify building of wic-image-minimal recipe
and produced artifacts: manifest and bzipped partitioned image.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
 meta/lib/oeqa/selftest/wic.py | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index fe8a2d0..deb2333 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -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)))
-- 
2.1.4



  parent reply	other threads:[~2015-08-30 21:14 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-30 21:14 [PATCH 0/5] V4: Build wic images with bitbake Ed Bartosh
2015-08-30 21:14 ` [PATCH 1/5] image.py: write bitbake variables to .env file Ed Bartosh
2015-08-31  4:22   ` Christopher Larson
2015-08-31 11:14     ` Ed Bartosh
2015-08-30 21:14 ` [PATCH 2/5] oe-selftest: test generation of <image>.env Ed Bartosh
2015-08-30 21:14 ` [PATCH 3/5] wic-image-minimal: add wic image recipe and .wks Ed Bartosh
2015-08-30 21:14 ` Ed Bartosh [this message]
2015-08-30 21:14 ` [PATCH 5/5] wic: use bitbake variable ROOTFS_SIZE Ed Bartosh

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=697d9e85a031e765a4e4297ebd06d970eaefa02b.1440969020.git.ed.bartosh@linux.intel.com \
    --to=ed.bartosh@linux.intel.com \
    --cc=openembedded-core@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox