blob: 56cdf6eb4da4fffb3fd5cdd8a47e1d0afbdd9e18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
import shlex
from framework.core import *
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()
profile.tests['egl'] = egl
egl['egl-create-surface'] = plain_test('egl-create-surface')
egl['egl-nok-swap-region'] = plain_test('egl-nok-swap-region')
egl['egl-nok-texture-from-pixmap'] = plain_test('egl-nok-texture-from-pixmap')
egl['egl-query-surface-EGL_BAD_ATTRIBUTE'] = plain_test('egl-query-surface --bad-attr')
egl['egl-query-surface-EGL_BAD_SURFACE'] = plain_test('egl-query-surface --bad-surface')
egl['egl-query-surface-EGL_HEIGHT'] = plain_test('egl-query-surface --attr=EGL_HEIGHT')
egl['egl-query-surface-EGL_WIDTH'] = plain_test('egl-query-surface --attr=EGL_WIDTH')
create_context = Group();
egl['EGL_KHR_create_context'] = create_context
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')
create_context['verify GL flavor'] = concurrent_test('egl-create-context-verify-gl-flavor')
|