diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/runtime_test.py | 17 |
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 | ||
