blob: a43bd76560083355c5c4aca7dfa4fa645119b733 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
class TestingConfig:
""""
TestingConfig - Information on a how to run a group of tests.
"""
@staticmethod
def frompath(path):
data = {}
f = open(path)
exec f in {},data
return TestingConfig(suffixes = data.get('suffixes', []),
environment = data.get('environment', {}))
def __init__(self, suffixes, environment):
self.suffixes = set(suffixes)
self.environment = dict(environment)
# Variables set internally.
self.root = None
self.useValgrind = None
self.useExternalShell = None
# FIXME: These need to move into a substitutions mechanism.
self.clang = None
self.clangcc = None
|