From c6b8d4868172185558930b9239c2f9759c0bb7eb Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Wed, 5 Jan 2011 17:24:00 -0800 Subject: glslparsertest: Allow tests to require GL extensions --- framework/glsl_parser_test.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'framework') 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) -- cgit v1.2.3