diff options
-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) |