summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-26 18:55:02 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-02 23:00:52 +0100
commit723ed56eda0e64b9678b846ef2001465b15e0c1b (patch)
treebf3eb8bd7f230d6b75360c77cfb9ae36b711c7b4 /meta
parent24a6590e85c941a73ea852b91939db8c0835d683 (diff)
downloadopenembedded-core-723ed56eda0e64b9678b846ef2001465b15e0c1b.tar.gz
openembedded-core-723ed56eda0e64b9678b846ef2001465b15e0c1b.tar.bz2
openembedded-core-723ed56eda0e64b9678b846ef2001465b15e0c1b.zip
wic: Test rootfs plugin using image recipes
Added canned wks and testcase to create multi-rootfs images referring bitbake image recipes. Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/wic.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py
index 53855625b8..3cfc2ffcba 100644
--- a/meta/lib/oeqa/selftest/wic.py
+++ b/meta/lib/oeqa/selftest/wic.py
@@ -133,3 +133,13 @@ class Wic(oeSelfTest):
self.assertEqual(2, runCmd("wic create directdisk "
"--image-name core-image-minimal "
"-c wrong", ignore_status=True).status)
+
+ def test16_rootfs_indirect_recipes(self):
+ """Test usage of rootfs plugin with rootfs recipes"""
+ wks = "directdisk-multi-rootfs"
+ self.assertEqual(0, runCmd("wic create %s "
+ "--image-name core-image-minimal "
+ "--rootfs rootfs1=core-image-minimal "
+ "--rootfs rootfs2=core-image-minimal" \
+ % wks).status)
+ self.assertEqual(1, len(glob(self.resultdir + "%s*.direct" % wks)))