diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2015-09-02 13:58:04 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-03 12:43:25 +0100 |
commit | 4fd65df90f9de20a2245ec50450244560df88722 (patch) | |
tree | 633a400c22fb968d9677efe9bf5ed0bd1357a47a | |
parent | bf41b068875cc0b37f4c58758ada720f46f93b29 (diff) | |
download | poky-4fd65df90f9de20a2245ec50450244560df88722.tar.gz |
wic: add test cases for 3 images
Added test cases to build qemux86_directdisk, mkgummidisk and
mkefdisk images.
(From OE-Core rev: f2d75d76d1af9e4852637f60eac8dfc967431acb)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 817a820450..3dc54a4c6d 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
@@ -213,3 +213,24 @@ class Wic(oeSelfTest): | |||
213 | path = prefix + suffix | 213 | path = prefix + suffix |
214 | self.assertTrue(os.path.islink(path)) | 214 | self.assertTrue(os.path.islink(path)) |
215 | self.assertTrue(os.path.isfile(os.path.realpath(path))) | 215 | self.assertTrue(os.path.isfile(os.path.realpath(path))) |
216 | |||
217 | def test21_qemux86_directdisk(self): | ||
218 | """Test creation of qemux-86-directdisk image""" | ||
219 | image = "qemux86-directdisk" | ||
220 | self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ | ||
221 | % image).status) | ||
222 | self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) | ||
223 | |||
224 | def test22_mkgummidisk(self): | ||
225 | """Test creation of mkgummidisk image""" | ||
226 | image = "mkgummidisk" | ||
227 | self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ | ||
228 | % image).status) | ||
229 | self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) | ||
230 | |||
231 | def test23_mkefidisk(self): | ||
232 | """Test creation of mkefidisk image""" | ||
233 | image = "mkefidisk" | ||
234 | self.assertEqual(0, runCmd("wic create %s -e core-image-minimal" \ | ||
235 | % image).status) | ||
236 | self.assertEqual(1, len(glob(self.resultdir + "%s-*direct" % image))) | ||