diff options
author | Daniel Istrate <daniel.alexandrux.istrate@intel.com> | 2015-07-07 14:36:58 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-07-09 18:00:20 +0100 |
commit | 975cb960aad5b6235b4ac0b77238740931b703ac (patch) | |
tree | ab1972165184f21601815e61b6f3c54ba0eeb6bb /meta/lib/oeqa | |
parent | 1881c5e0c426a193630e5eed5b629b69ff3741d5 (diff) | |
download | poky-975cb960aad5b6235b4ac0b77238740931b703ac.tar.gz |
oeqa/selftest: Added 2 testcases and updated setup for other two in imagefeatures.
Automated 2 oe-selftest testcases:
- 1116: Check if clutter image can be built
- 1117: Check Wayland support in image
Updated setup for test_efi_gummiboot_images_can_be_build and
test_wic_command_can_create_efi_gummiboot_installation_images
to accomodate latest wic changes.
(From OE-Core rev: cf3e145bb6823fb22e2701a9a7e0623e4c4a1791)
Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa')
-rw-r--r-- | meta/lib/oeqa/selftest/imagefeatures.py | 41 |
1 files changed, 39 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/imagefeatures.py b/meta/lib/oeqa/selftest/imagefeatures.py index e49f4986a0..e0e424dada 100644 --- a/meta/lib/oeqa/selftest/imagefeatures.py +++ b/meta/lib/oeqa/selftest/imagefeatures.py | |||
@@ -207,6 +207,41 @@ class ImageFeatures(oeSelfTest): | |||
207 | system('pkill qemu') | 207 | system('pkill qemu') |
208 | proc_qemu.close() | 208 | proc_qemu.close() |
209 | 209 | ||
210 | @testcase(1116) | ||
211 | def test_clutter_image_can_be_built(self): | ||
212 | """ | ||
213 | Summary: Check if clutter image can be built | ||
214 | Expected: 1. core-image-clutter can be built | ||
215 | Product: oe-core | ||
216 | Author: Ionut Chisanovici <ionutx.chisanovici@intel.com> | ||
217 | AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com> | ||
218 | """ | ||
219 | |||
220 | # Build a core-image-clutter | ||
221 | ret = bitbake('core-image-clutter') | ||
222 | self.assertEqual(0, ret.status, 'Failed to build core-image-clutter') | ||
223 | |||
224 | @testcase(1117) | ||
225 | def test_wayland_support_in_image(self): | ||
226 | """ | ||
227 | Summary: Check Wayland support in image | ||
228 | Expected: 1. Wayland image can be build | ||
229 | 2. Wayland feature can be installed | ||
230 | Product: oe-core | ||
231 | Author: Ionut Chisanovici <ionutx.chisanovici@intel.com> | ||
232 | AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com> | ||
233 | """ | ||
234 | |||
235 | features = 'DISTRO_FEATURES_append = " wayland"\n' | ||
236 | features += 'CORE_IMAGE_EXTRA_INSTALL += "wayland weston"' | ||
237 | |||
238 | # Append 'features' to local.conf | ||
239 | self.append_config(features) | ||
240 | |||
241 | # Build a core-image-weston | ||
242 | ret = bitbake('core-image-weston') | ||
243 | self.assertEqual(0, ret.status, 'Failed to build a core-image-weston') | ||
244 | |||
210 | 245 | ||
211 | class Gummiboot(oeSelfTest): | 246 | class Gummiboot(oeSelfTest): |
212 | 247 | ||
@@ -240,8 +275,10 @@ class Gummiboot(oeSelfTest): | |||
240 | features += 'MACHINE = "nuc"' | 275 | features += 'MACHINE = "nuc"' |
241 | self.append_config(features) | 276 | self.append_config(features) |
242 | 277 | ||
243 | # Run "bitbake core-image-minimal" to build a nuc efi/gummiboot image | 278 | # Run "bitbake syslinux syslinux-native parted-native dosfstools-native mtools-native core-image-minimal " |
244 | ret = bitbake('core-image-minimal') | 279 | # to build a nuc/efi gummiboot image |
280 | |||
281 | ret = bitbake('syslinux syslinux-native parted-native dosfstools-native mtools-native core-image-minimal') | ||
245 | self.assertEqual(0, ret.status, 'Failed to build a core-image-minimal') | 282 | self.assertEqual(0, ret.status, 'Failed to build a core-image-minimal') |
246 | 283 | ||
247 | @testcase(1101) | 284 | @testcase(1101) |