summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2017-10-05 17:38:00 +0200
committerMarek Olšák <marek.olsak@amd.com>2018-05-02 17:29:02 -0400
commitdb1bd7857c5c33a1f59317ca0669e5126407d8a2 (patch)
tree8f6548c47f3c5ab9e3fc288e484a03b14bac2415 /tests
parent39df5bd595c34d638b9b3a4c34f7e53e2700eb51 (diff)
deqp_egl: add support for mustpass lists
Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/deqp_egl.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/deqp_egl.py b/tests/deqp_egl.py
index 7422c82e3..ccd40b2af 100644
--- a/tests/deqp_egl.py
+++ b/tests/deqp_egl.py
@@ -26,6 +26,7 @@ from __future__ import (
)
from framework.test import deqp
+from framework.options import OPTIONS
__all__ = ['profile']
@@ -33,6 +34,10 @@ _EGL_BIN = deqp.get_option('PIGLIT_DEQP_EGL_BIN',
('deqp-egl', 'bin'),
required=True)
+_DEQP_MUSTPASS = deqp.get_option('PIGLIT_DEQP_EGL_MUSTPASS',
+ ('deqp-egl', 'mustpasslist'),
+ required=OPTIONS.deqp_mustpass)
+
_EXTRA_ARGS = deqp.get_option('PIGLIT_DEQP_EGL_EXTRA_ARGS',
('deqp-egl', 'extra_args'),
default='').split()
@@ -48,7 +53,6 @@ class DEQPEGLTest(deqp.DEQPBaseTest):
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)),
+ deqp.select_source(_EGL_BIN, 'dEQP-EGL-cases.txt', _DEQP_MUSTPASS,
+ _EXTRA_ARGS),
DEQPEGLTest)