Skip to contentSkip to conversation

added 2 new test cases

PATCH New Ed Bartosh 1 participant 3 messages Oct 6, 2016

lore
Share & tools
lore

Ed Bartosh

author
#0 lore raw

cover added 2 new test cases

Hi,

2 new test cases for oe-selftest wic test suite:
test image creation for systemd-bootdisk.wks
test image creation for sdimage-bootpart.wks

The following changes since commit f12825d4bf7091576856650123c7d7614b9089af:

scripts: Rename 'native' to 'oe-run-native' (2016-10-06 07:53:51 +0100)

are available in the git repository at:

git://git.yoctoproject.org/poky-contrib ed/wic/add-2new-tests
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/add-2new-tests

Ed Bartosh (2):
wic: selftest: add test for systemd-bootdisk
wic: selftest: add test for sdimage-bootpart

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

--
Regards,
Ed

author
#1 lore raw

PATCH 1/2 wic: selftest: add test for systemd-bootdisk

Test creation of systemd-bootdisk image.

---
 meta/lib/oeqa/selftest/wic.py | 7 +++++++
 1 file changed, 7 insertions(+)
meta/lib/oeqa/selftest/wic.py +7 -0
index e550785..bf1a860 100644
@@ -284,3 +284,10 @@ class Wic(oeSelfTest):
         self.assertEqual(0, status)
         self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
         self.assertEqual(1, len(glob(self.resultdir + "%s-*direct.bmap" % image)))
+
+    def test_systemd_bootdisk(self):
+        """Test creation of systemd-bootdisk image"""
+        image = "systemd-bootdisk"
+        self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
+                                   % image).status)
+        self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
Signature · 1 line
2.1.4
author
#2 lore raw

PATCH 2/2 wic: selftest: add test for sdimage-bootpart

In reply to Ed Bartosh

Test creation of sdimage-bootpart image

---
 meta/lib/oeqa/selftest/wic.py | 8 ++++++++
 1 file changed, 8 insertions(+)
meta/lib/oeqa/selftest/wic.py +8 -0
index bf1a860..faac11e 100644
@@ -291,3 +291,11 @@ class Wic(oeSelfTest):
         self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
                                    % image).status)
         self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
+
+    def test_sdimage_bootpart(self):
+        """Test creation of sdimage-bootpart image"""
+        image = "sdimage-bootpart"
+        self.write_config('IMAGE_BOOT_FILES = "bzImage"\n')
+        self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \
+                                   % image).status)
+        self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image)))
Signature · 1 line
2.1.4