2 # -*- coding: utf-8 -*-
3 # All tests that come with piglit, using default settings
9 from framework
.core
import *
10 from framework
.exectest
import *
11 from framework
.gleantest
import *
13 profile
= TestProfile()
15 def add_glslparsertest(shader
, result
):
16 glslparsertest
[shader
] = PlainExecTest(['../tests/glslparsertest/external-glslparsertest.sh', 'tests/glslparsertest/shaders/' + shader
, result
])
17 def add_otherglslparsertest(shader
, result
, min_glsl_version
= '1.10'):
18 glslparsertest
[shader
] = PlainExecTest(['../tests/glslparsertest/external-glslparsertest.sh', 'tests/glslparsertest/' + shader
, result
])
19 execfile(os
.path
.dirname(__file__
) + '/glslparser.tests')
21 profile
.tests
['glslparsertest'] = glslparsertest
23 def add_otherglslparsertest(shader
, result
):
24 glslparsertest
[shader
] = PlainExecTest(['../tests/glslparsertest/external-glslparsertest.sh', 'tests/' + shader
, result
])
25 add_otherglslparsertest('shaders/glsl-arb-fragment-coord-conventions-define.frag', 'pass')
26 add_otherglslparsertest('shaders/glsl-color.frag', 'pass')
27 add_otherglslparsertest('shaders/glsl-fs-bug25902.frag', 'pass')
28 add_otherglslparsertest('shaders/glsl-fs-exp2.frag', 'pass')
29 add_otherglslparsertest('shaders/glsl-fs-fragcoord.frag', 'pass')
30 add_otherglslparsertest('shaders/glsl-fs-loop.frag', 'pass')
31 add_otherglslparsertest('shaders/glsl-fs-loop-nested.frag', 'pass')
32 add_otherglslparsertest('shaders/glsl-fs-mix-constant.frag', 'pass')
33 add_otherglslparsertest('shaders/glsl-fs-mix.frag', 'pass')
34 add_otherglslparsertest('shaders/glsl-fs-sqrt-branch.frag', 'pass')
35 add_otherglslparsertest('shaders/glsl-fs-sqrt-zero.frag', 'pass')
36 add_otherglslparsertest('shaders/glsl-mvp.vert', 'pass')
37 add_otherglslparsertest('shaders/glsl-orangebook-ch06-bump.frag', 'pass')
38 add_otherglslparsertest('shaders/glsl-orangebook-ch06-bump.vert', 'pass')
39 add_otherglslparsertest('shaders/glsl-preprocessor-comments.frag', 'pass')
40 add_otherglslparsertest('shaders/glsl-preprocessor-comments.vert', 'pass')
41 add_otherglslparsertest('shaders/glsl-tex-mvp.vert', 'pass')
42 add_otherglslparsertest('shaders/glsl-uniform-update.frag', 'pass')
43 add_otherglslparsertest('shaders/glsl-unused-varying.frag', 'pass')
44 add_otherglslparsertest('shaders/glsl-unused-varying.vert', 'pass')
45 add_otherglslparsertest('shaders/glsl-vs-arrays.vert', 'pass')
46 add_otherglslparsertest('shaders/glsl-vs-functions.vert', 'pass')
47 add_otherglslparsertest('shaders/glsl-vs-if-bool.vert', 'pass')
48 add_otherglslparsertest('shaders/glsl-vs-loop-nested.vert', 'pass')
49 add_otherglslparsertest('shaders/glsl-vs-loop.vert', 'pass')
50 add_otherglslparsertest('shaders/glsl-vs-mov-after-deref.vert', 'pass')
51 add_otherglslparsertest('shaders/glsl-vs-sqrt-zero.vert', 'pass')