[9/9] tests/deqp_egl: add support for running without process isolation.

Submitted by Dylan Baker on Oct. 31, 2016, 10:25 p.m.

Details

Message ID 2ff63cb3b42bca14b15295ca90dc9640f6d945a5.1477952711.git-series.dylan@pnwbakers.com
State New
Headers show
Series "Add support to deqp based profiles to remove process isolation" ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Oct. 31, 2016, 10:25 p.m.
I can't actually test this patch, the egl tests from deqp are broken and
all of them fail, I'm going to take a guess that they are like the
deqp_gles* tests and don't benefit from removing process isolation, but
that's just a guess.

Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com>
---
 tests/deqp_egl.py | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

Patch hide | download patch | download mbox

diff --git a/tests/deqp_egl.py b/tests/deqp_egl.py
index 2b8dfac..c458c2e 100644
--- a/tests/deqp_egl.py
+++ b/tests/deqp_egl.py
@@ -38,17 +38,25 @@  _EXTRA_ARGS = deqp.get_option('PIGLIT_DEQP_EGL_EXTRA_ARGS',
                               default='').split()
 
 
-class DEQPEGLTest(deqp.DEQPSingleTest):
+class _Mixin(object):
     deqp_bin = _EGL_BIN
 
     @property
     def extra_args(self):
-        return super(DEQPEGLTest, self).extra_args + \
+        return super(_Mixin, self).extra_args + \
             [x for x in _EXTRA_ARGS if not x.startswith('--deqp-case')]
 
 
+class DEQPEGLSingleTest(_Mixin, deqp.DEQPSingleTest):
+    pass
+
+
+class DEQPEGLGroupTest(_Mixin, deqp.DEQPGroupTest):
+    pass
+
+
 profile = deqp.make_profile(  # pylint: disable=invalid-name
     deqp.iter_deqp_test_cases(
         deqp.gen_caselist_txt(_EGL_BIN, 'dEQP-EGL-cases.txt',
                               _EXTRA_ARGS)),
-    DEQPEGLTest)
+    single=DEQPEGLSingleTest, group=DEQPEGLGroupTest)