[Piglit] [PATCH 1/3] glsl_parser_test.py: For glsl 1.00 use gles2
Tom Gall
tom.gall at linaro.org
Tue Apr 2 12:58:31 PDT 2013
When the glsl_version is 1.00, use the glslparsertest_gles2 binary
Signed-off-by: Tom Gall <tom.gall at linaro.org>
---
framework/glsl_parser_test.py | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/framework/glsl_parser_test.py b/framework/glsl_parser_test.py
index 66e6dd3..914904d 100755
--- a/framework/glsl_parser_test.py
+++ b/framework/glsl_parser_test.py
@@ -368,8 +368,14 @@ class GLSLParserTest(PlainExecTest):
return None
assert(self.config is not None)
+
+ if self.config.get('config', 'glsl_version') == '1.00':
+ runner = "glslparsertest_gles2"
+ else:
+ runner = "glslparsertest"
+
command = [
- path.join(testBinDir, 'glslparsertest'),
+ path.join(testBinDir, runner),
self.__filepath,
self.config.get('config', 'expect_result'),
self.config.get('config', 'glsl_version')
--
1.7.10.4
More information about the Piglit
mailing list