From 723ed56eda0e64b9678b846ef2001465b15e0c1b Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Fri, 26 Jun 2015 18:55:02 +0300 Subject: 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 --- meta/lib/oeqa/selftest/wic.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'meta') 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))) -- cgit v1.2.3