[Piglit] [PATCH 11/11] tests/deqp_egl: add group at a time mode support.

Dylan Baker dylan at pnwbakers.com
Fri Aug 26 18:31:18 UTC 2016


I can't actually test group at a time mode for this, 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
group-at-a-time mode, but that's just a guess.

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

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)
-- 
git-series 0.8.7


More information about the Piglit mailing list