blob: a43bd76560083355c5c4aca7dfa4fa645119b733 [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 Dunbar0dec8382009-08-01 10:18:01 +000022 self.useExternalShell = None
Daniel Dunbar1db467f2009-07-31 05:54:17 +000023
Daniel Dunbar5928ccd2009-08-01 04:06:02 +000024 # FIXME: These need to move into a substitutions mechanism.
25 self.clang = None
26 self.clangcc = None