blob: 998642b47b7ca6003da52403053182962f8835b3 [file] [log] [blame]
Daniel Dunbar1db467f2009-07-31 05:54:17 +00001class TestingConfig:
2 """"
3 TestingConfig - Information on a how to run a group of tests.
4 """
5
6 @staticmethod
7 def frompath(path):
8 data = {}
9 f = open(path)
10 exec f in {},data
11
12 return TestingConfig(suffixes = data.get('suffixes', []),
13 environment = data.get('environment', {}))
14
15 def __init__(self, suffixes, environment):
Daniel Dunbar1db467f2009-07-31 05:54:17 +000016 self.suffixes = set(suffixes)
17 self.environment = dict(environment)
Daniel Dunbar1db467f2009-07-31 05:54:17 +000018
Daniel Dunbar5928ccd2009-08-01 04:06:02 +000019 # Variables set internally.
20 self.root = None
21 self.useValgrind = None
Daniel Dunbar1db467f2009-07-31 05:54:17 +000022
Daniel Dunbar5928ccd2009-08-01 04:06:02 +000023 # FIXME: These need to move into a substitutions mechanism.
24 self.clang = None
25 self.clangcc = None