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

Submitted by Dylan Baker on Aug. 26, 2016, 6:31 p.m.

Details

Message ID 892a79be9a9723e1c66d22e001c54f4c1170d992.1472236000.git-series.dylan@pnwbakers.com
State New
Headers show
Series "unittests: Fix shared data for backends." ( rev: 1 ) in Piglit

Not browsing as part of any series.

Commit Message

Dylan Baker Aug. 26, 2016, 6:31 p.m.
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@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)