summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/cases/runtime_test.py
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-11-18 15:28:42 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-11-28 21:13:00 +0000
commit469f6ee0bb47ff0dfc96c04501bc7eb363c23d02 (patch)
tree21b0d5dd530db0ba6dd2c41d67fd29edb3815927 /meta/lib/oeqa/selftest/cases/runtime_test.py
parent63ad134e3d029accf67e1ba8880f59c7704cb505 (diff)
downloadpoky-469f6ee0bb47ff0dfc96c04501bc7eb363c23d02.tar.gz
oe-selftest: extend virgl gtk test to also check the SDL option
(From OE-Core rev: 909dc047790efad8304d9c6630c39f6a6b4166fb) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/runtime_test.py')
-rw-r--r--meta/lib/oeqa/selftest/cases/runtime_test.py17
1 files changed, 13 insertions, 4 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 4b56e5beca..ccd2c40aa3 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -166,9 +166,9 @@ class TestImage(OESelftestTestCase):
166 bitbake('core-image-full-cmdline socat') 166 bitbake('core-image-full-cmdline socat')
167 bitbake('-c testimage core-image-full-cmdline') 167 bitbake('-c testimage core-image-full-cmdline')
168 168
169 def test_testimage_virgl_gtk(self): 169 def test_testimage_virgl_gtk_sdl(self):
170 """ 170 """
171 Summary: Check host-assisted accelerate OpenGL functionality in qemu with gtk frontend 171 Summary: Check host-assisted accelerate OpenGL functionality in qemu with gtk and SDL frontends
172 Expected: 1. Check that virgl kernel driver is loaded and 3d acceleration is enabled 172 Expected: 1. Check that virgl kernel driver is loaded and 3d acceleration is enabled
173 2. Check that kmscube demo runs without crashing. 173 2. Check that kmscube demo runs without crashing.
174 Product: oe-core 174 Product: oe-core
@@ -183,18 +183,27 @@ class TestImage(OESelftestTestCase):
183 self.skipTest('virgl isn\'t working with Centos 7') 183 self.skipTest('virgl isn\'t working with Centos 7')
184 184
185 qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') 185 qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
186 sdl_packageconfig = get_bb_var('PACKAGECONFIG', 'libsdl2-native')
186 features = 'INHERIT += "testimage"\n' 187 features = 'INHERIT += "testimage"\n'
187 if 'gtk+' not in qemu_packageconfig: 188 if 'gtk+' not in qemu_packageconfig:
188 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n' 189 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n'
190 if 'sdl' not in qemu_packageconfig:
191 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n'
189 if 'virglrenderer' not in qemu_packageconfig: 192 if 'virglrenderer' not in qemu_packageconfig:
190 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n' 193 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n'
191 if 'glx' not in qemu_packageconfig: 194 if 'glx' not in qemu_packageconfig:
192 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n' 195 features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
196 if 'opengl' not in sdl_packageconfig:
197 features += 'PACKAGECONFIG_append_pn-libsdl2-native = " opengl"\n'
193 features += 'TEST_SUITES = "ping ssh virgl"\n' 198 features += 'TEST_SUITES = "ping ssh virgl"\n'
194 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' 199 features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
195 features += 'IMAGE_INSTALL_append = " kmscube"\n' 200 features += 'IMAGE_INSTALL_append = " kmscube"\n'
196 features += 'TEST_RUNQEMUPARAMS = "gtk gl"\n' 201 features_gtk = features + 'TEST_RUNQEMUPARAMS = "gtk gl"\n'
197 self.write_config(features) 202 self.write_config(features_gtk)
203 bitbake('core-image-minimal')
204 bitbake('-c testimage core-image-minimal')
205 features_sdl = features + 'TEST_RUNQEMUPARAMS = "sdl gl"\n'
206 self.write_config(features_sdl)
198 bitbake('core-image-minimal') 207 bitbake('core-image-minimal')
199 bitbake('-c testimage core-image-minimal') 208 bitbake('-c testimage core-image-minimal')
200 209