diff mbox

[1/3] glsl_parser_test.py: For glsl 1.00 use gles2

Message ID 1364932713-8221-1-git-send-email-tom.gall@linaro.org
State New
Headers show

Commit Message

Tom Gall April 2, 2013, 7:58 p.m. UTC
When the glsl_version is 1.00, use the glslparsertest_gles2 binary

Signed-off-by: Tom Gall <tom.gall@linaro.org>
---
 framework/glsl_parser_test.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
diff mbox

Patch

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')