[Piglit] [PATCH] egl_khr_create_context: Run tests concurrently
Matt Turner
mattst88 at gmail.com
Thu Oct 11 11:12:00 PDT 2012
---
tests/all_egl.tests | 39 ++++++++++++++++++++++-----------------
1 files changed, 22 insertions(+), 17 deletions(-)
diff --git a/tests/all_egl.tests b/tests/all_egl.tests
index 526687f..ab04191 100644
--- a/tests/all_egl.tests
+++ b/tests/all_egl.tests
@@ -6,6 +6,11 @@ from framework.exectest import *
def plain_test(args):
return PlainExecTest(shlex.split(args) + ['-auto'])
+def concurrent_test(args):
+ test = PlainExecTest(args.split() + ['-auto'])
+ test.runConcurrent = True
+ return test
+
profile = TestProfile()
egl = Group()
@@ -20,20 +25,20 @@ egl['egl-query-surface-EGL_WIDTH'] = plain_test('egl-query-surface --attr=EGL_WI
create_context = Group();
egl['EGL_KHR_create_context'] = create_context
-create_context['default major version GLES'] = plain_test('egl-create-context-default-major-version-gles')
-create_context['default major version GL'] = plain_test('egl-create-context-default-major-version-gl')
-create_context['default minor version GLES'] = plain_test('egl-create-context-default-minor-version-gles')
-create_context['default minor version GL'] = plain_test('egl-create-context-default-minor-version-gl')
-create_context['valid attribute empty GLES'] = plain_test('egl-create-context-valid-attribute-empty-gles')
-create_context['valid attribute empty GL'] = plain_test('egl-create-context-valid-attribute-empty-gl')
-create_context['NULL valid attribute GLES'] = plain_test('egl-create-context-valid-attribute-null-gles')
-create_context['NULL valid attribute GL'] = plain_test('egl-create-context-valid-attribute-null-gl')
-create_context['invalid OpenGL version'] = plain_test('egl-create-context-invalid-gl-version')
-create_context['invalid attribute GLES'] = plain_test('egl-create-context-invalid-attribute-gles')
-create_context['invalid attribute GL'] = plain_test('egl-create-context-invalid-attribute-gl')
-create_context['invalid flag GLES'] = plain_test('egl-create-context-invalid-flag-gles')
-create_context['invalid flag GL'] = plain_test('egl-create-context-invalid-flag-gl')
-create_context['valid forward-compatible flag GL'] = plain_test('egl-create-context-valid-flag-forward-compatible-gl')
-create_context['invalid profile'] = plain_test('egl-create-context-invalid-profile')
-create_context['3.2 core profile required'] = plain_test('egl-create-context-core-profile')
-create_context['pre-GL3.2 profile'] = plain_test('egl-create-context-pre-GL32-profile')
+create_context['default major version GLES'] = concurrent_test('egl-create-context-default-major-version-gles')
+create_context['default major version GL'] = concurrent_test('egl-create-context-default-major-version-gl')
+create_context['default minor version GLES'] = concurrent_test('egl-create-context-default-minor-version-gles')
+create_context['default minor version GL'] = concurrent_test('egl-create-context-default-minor-version-gl')
+create_context['valid attribute empty GLES'] = concurrent_test('egl-create-context-valid-attribute-empty-gles')
+create_context['valid attribute empty GL'] = concurrent_test('egl-create-context-valid-attribute-empty-gl')
+create_context['NULL valid attribute GLES'] = concurrent_test('egl-create-context-valid-attribute-null-gles')
+create_context['NULL valid attribute GL'] = concurrent_test('egl-create-context-valid-attribute-null-gl')
+create_context['invalid OpenGL version'] = concurrent_test('egl-create-context-invalid-gl-version')
+create_context['invalid attribute GLES'] = concurrent_test('egl-create-context-invalid-attribute-gles')
+create_context['invalid attribute GL'] = concurrent_test('egl-create-context-invalid-attribute-gl')
+create_context['invalid flag GLES'] = concurrent_test('egl-create-context-invalid-flag-gles')
+create_context['invalid flag GL'] = concurrent_test('egl-create-context-invalid-flag-gl')
+create_context['valid forward-compatible flag GL'] = concurrent_test('egl-create-context-valid-flag-forward-compatible-gl')
+create_context['invalid profile'] = concurrent_test('egl-create-context-invalid-profile')
+create_context['3.2 core profile required'] = concurrent_test('egl-create-context-core-profile')
+create_context['pre-GL3.2 profile'] = concurrent_test('egl-create-context-pre-GL32-profile')
--
1.7.8.6
More information about the Piglit
mailing list