diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases/runtime_test.py')
-rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py index 09d3de7aea..793c98a335 100644 --- a/meta/lib/oeqa/selftest/cases/runtime_test.py +++ b/meta/lib/oeqa/selftest/cases/runtime_test.py | |||
@@ -188,18 +188,14 @@ class TestImage(OESelftestTestCase): | |||
188 | self.skipTest('virgl isn\'t working with Opensuse 15.0') | 188 | self.skipTest('virgl isn\'t working with Opensuse 15.0') |
189 | 189 | ||
190 | qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') | 190 | qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') |
191 | sdl_packageconfig = get_bb_var('PACKAGECONFIG', 'libsdl2-native') | 191 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') |
192 | features = 'INHERIT += "testimage"\n' | 192 | features = 'INHERIT += "testimage"\n' |
193 | if 'gtk+' not in qemu_packageconfig: | 193 | if 'gtk+' not in qemu_packageconfig: |
194 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n' | 194 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n' |
195 | if 'sdl' not in qemu_packageconfig: | 195 | if 'sdl' not in qemu_packageconfig: |
196 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n' | 196 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " sdl"\n' |
197 | if 'virglrenderer' not in qemu_packageconfig: | 197 | if 'opengl' not in qemu_distrofeatures: |
198 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n' | 198 | features += 'DISTRO_FEATURES_append = " opengl"\n' |
199 | if 'glx' not in qemu_packageconfig: | ||
200 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n' | ||
201 | if 'opengl' not in sdl_packageconfig: | ||
202 | features += 'PACKAGECONFIG_append_pn-libsdl2-native = " opengl"\n' | ||
203 | features += 'TEST_SUITES = "ping ssh virgl"\n' | 199 | features += 'TEST_SUITES = "ping ssh virgl"\n' |
204 | features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' | 200 | features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' |
205 | features += 'IMAGE_INSTALL_append = " kmscube"\n' | 201 | features += 'IMAGE_INSTALL_append = " kmscube"\n' |
@@ -231,12 +227,10 @@ class TestImage(OESelftestTestCase): | |||
231 | dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True) | 227 | dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True) |
232 | except subprocess.CalledProcessError as e: | 228 | except subprocess.CalledProcessError as e: |
233 | self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.") | 229 | self.skipTest("Could not determine the path to dri drivers on the host via pkg-config.\nPlease install Mesa development files (particularly, dri.pc) on the host machine.") |
234 | qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native') | 230 | qemu_distrofeatures = get_bb_var('DISTRO_FEATURES', 'qemu-system-native') |
235 | features = 'INHERIT += "testimage"\n' | 231 | features = 'INHERIT += "testimage"\n' |
236 | if 'virglrenderer' not in qemu_packageconfig: | 232 | if 'opengl' not in qemu_distrofeatures: |
237 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n' | 233 | features += 'DISTRO_FEATURES_append = " opengl"\n' |
238 | if 'glx' not in qemu_packageconfig: | ||
239 | features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n' | ||
240 | features += 'TEST_SUITES = "ping ssh virgl"\n' | 234 | features += 'TEST_SUITES = "ping ssh virgl"\n' |
241 | features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' | 235 | features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n' |
242 | features += 'IMAGE_INSTALL_append = " kmscube"\n' | 236 | features += 'IMAGE_INSTALL_append = " kmscube"\n' |