[oe-commits] [openembedded-core] 01/01: virtgl selftest fixup
git at git.openembedded.org
git at git.openembedded.org
Mon Mar 4 12:57:58 UTC 2019
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 2e3f185015e397b7671266f6ce072b28436ce9f4
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sun Mar 3 15:47:30 2019 +0000
virtgl selftest fixup
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta-selftest/lib/oeqa/runtime/cases/virgl.py | 12 +++---------
meta/lib/oeqa/selftest/cases/runtime_test.py | 15 +++++++++++++++
2 files changed, 18 insertions(+), 9 deletions(-)
diff --git a/meta-selftest/lib/oeqa/runtime/cases/virgl.py b/meta-selftest/lib/oeqa/runtime/cases/virgl.py
index cc25e77..175e4ae 100644
--- a/meta-selftest/lib/oeqa/runtime/cases/virgl.py
+++ b/meta-selftest/lib/oeqa/runtime/cases/virgl.py
@@ -1,7 +1,7 @@
from oeqa.runtime.case import OERuntimeTestCase
from oeqa.core.decorator.depends import OETestDepends
import subprocess
-import oe
+import oe.lsb
class VirglTest(OERuntimeTestCase):
@@ -13,14 +13,8 @@ class VirglTest(OERuntimeTestCase):
@OETestDepends(['virgl.VirglTest.test_kernel_driver'])
def test_kmscube(self):
- from fnmatch import fnmatch
-
- try:
- distro = oe.lsb.distro_identifier()
- except Exception:
- distro = None
-
- if distro and fnmatch(distro, 'centos-7'):
+ distro = oe.lsb.distro_identifier()
+ if distro and distro == 'centos-7':
self.skipTest('kmscube is not working when centos 7 is the host OS')
status, output = self.target.run('kmscube', timeout=30)
diff --git a/meta/lib/oeqa/selftest/cases/runtime_test.py b/meta/lib/oeqa/selftest/cases/runtime_test.py
index 8e24193..0b23519 100644
--- a/meta/lib/oeqa/selftest/cases/runtime_test.py
+++ b/meta/lib/oeqa/selftest/cases/runtime_test.py
@@ -6,6 +6,7 @@ import os
import re
import tempfile
import shutil
+import oe.lsb
class TestExport(OESelftestTestCase):
@@ -177,12 +178,21 @@ class TestImage(OESelftestTestCase):
Product: oe-core
Author: Alexander Kanavin <alex.kanavin at gmail.com>
"""
+ from fnmatch import fnmatch
if "DISPLAY" not in os.environ:
self.skipTest("virgl gtk test must be run inside a X session")
+ distro = oe.lsb.distro_identifier()
+ if distro and distro == 'debian-8':
+ self.skipTest('virgl isn\'t working with Debian 8')
+
qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
features = 'INHERIT += "testimage"\n'
if 'gtk+' not in qemu_packageconfig:
features += 'PACKAGECONFIG_append_pn-qemu-system-native = " gtk+"\n'
+ if 'virglrenderer' not in qemu_packageconfig:
+ features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n'
+ if 'glx' not in qemu_packageconfig:
+ features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
features += 'TEST_SUITES = "ping ssh virgl"\n'
features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
features += 'IMAGE_INSTALL_append = " kmscube"\n'
@@ -211,7 +221,12 @@ class TestImage(OESelftestTestCase):
dripath = subprocess.check_output("pkg-config --variable=dridriverdir dri", shell=True)
except subprocess.CalledProcessError as e:
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.")
+ qemu_packageconfig = get_bb_var('PACKAGECONFIG', 'qemu-system-native')
features = 'INHERIT += "testimage"\n'
+ if 'virglrenderer' not in qemu_packageconfig:
+ features += 'PACKAGECONFIG_append_pn-qemu-system-native = " virglrenderer"\n'
+ if 'glx' not in qemu_packageconfig:
+ features += 'PACKAGECONFIG_append_pn-qemu-system-native = " glx"\n'
features += 'TEST_SUITES = "ping ssh virgl"\n'
features += 'IMAGE_FEATURES_append = " ssh-server-dropbear"\n'
features += 'IMAGE_INSTALL_append = " kmscube"\n'
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list