blob: b611d78e14daafcb08191e10455a4bd9c0c1ff65 (
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
27
|
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
self.valgrindArgs = []
# FIXME: These need to move into a substitutions mechanism.
self.clang = None
self.clangcc = None
|