summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Istrate <daniel.alexandrux.istrate@intel.com>2015-07-07 14:36:58 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-08 15:23:25 +0100
commitcf3e145bb6823fb22e2701a9a7e0623e4c4a1791 (patch)
treef77bf140b9bc4bb78e52005cd2e766462b893b92
parent3d1aa27191fe4c21428eaf4ae036acb1496b7df7 (diff)
downloadopenembedded-core-contrib-cf3e145bb6823fb22e2701a9a7e0623e4c4a1791.tar.gz
openembedded-core-contrib-cf3e145bb6823fb22e2701a9a7e0623e4c4a1791.tar.bz2
openembedded-core-contrib-cf3e145bb6823fb22e2701a9a7e0623e4c4a1791.zip
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. Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/imagefeatures.py41
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):
system('pkill qemu')
proc_qemu.close()
+ @testcase(1116)
+ def test_clutter_image_can_be_built(self):
+ """
+ Summary: Check if clutter image can be built
+ Expected: 1. core-image-clutter can be built
+ Product: oe-core
+ Author: Ionut Chisanovici <ionutx.chisanovici@intel.com>
+ AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
+ """
+
+ # Build a core-image-clutter
+ ret = bitbake('core-image-clutter')
+ self.assertEqual(0, ret.status, 'Failed to build core-image-clutter')
+
+ @testcase(1117)
+ def test_wayland_support_in_image(self):
+ """
+ Summary: Check Wayland support in image
+ Expected: 1. Wayland image can be build
+ 2. Wayland feature can be installed
+ Product: oe-core
+ Author: Ionut Chisanovici <ionutx.chisanovici@intel.com>
+ AutomatedBy: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
+ """
+
+ features = 'DISTRO_FEATURES_append = " wayland"\n'
+ features += 'CORE_IMAGE_EXTRA_INSTALL += "wayland weston"'
+
+ # Append 'features' to local.conf
+ self.append_config(features)
+
+ # Build a core-image-weston
+ ret = bitbake('core-image-weston')
+ self.assertEqual(0, ret.status, 'Failed to build a core-image-weston')
+
class Gummiboot(oeSelfTest):
@@ -240,8 +275,10 @@ class Gummiboot(oeSelfTest):
features += 'MACHINE = "nuc"'
self.append_config(features)
- # Run "bitbake core-image-minimal" to build a nuc efi/gummiboot image
- ret = bitbake('core-image-minimal')
+ # Run "bitbake syslinux syslinux-native parted-native dosfstools-native mtools-native core-image-minimal "
+ # to build a nuc/efi gummiboot image
+
+ ret = bitbake('syslinux syslinux-native parted-native dosfstools-native mtools-native core-image-minimal')
self.assertEqual(0, ret.status, 'Failed to build a core-image-minimal')
@testcase(1101)