summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-01-05 17:24:00 -0800
committerIan Romanick <ian.d.romanick@intel.com>2011-01-07 15:41:56 -0800
commitc6b8d4868172185558930b9239c2f9759c0bb7eb (patch)
treed945539920de2b4fdcdf0dac1023656952fe3fe7 /framework
parent0d48bff983f658cdcbdc2dfd26929f9be6f8e125 (diff)
glslparsertest: Allow tests to require GL extensions
Diffstat (limited to 'framework')
-rwxr-xr-xframework/glsl_parser_test.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/framework/glsl_parser_test.py b/framework/glsl_parser_test.py
index 66c435c1..29b14de3 100755
--- a/framework/glsl_parser_test.py
+++ b/framework/glsl_parser_test.py
@@ -305,12 +305,17 @@ class GLSLParserTest(PlainExecTest):
:return: ([str], None) or (None, TestResult)
"""
+ if config.has_option('config', 'extension'):
+ extensions = config.get('config', 'extension').split();
+ else:
+ extensions = []
+
command = [
path.join(testBinDir, 'glslparsertest'),
self.filepath,
config.get('config', 'expect_result'),
- config.get('config', 'glsl_version'),
- ]
+ config.get('config', 'glsl_version')
+ ] + extensions
# There is no case in which the function returns (None, result).
# However, the function may have a future need to do so.
return (command, None)