llvm-project/clang/utils/test/TestingConfig.py
Daniel Dunbar 3009f81d1d Add --vg-arg option to clang test runner.
- Passes additional argument through to valgrind.

Also, don't run valgrind with --leak-check=no by default.

llvm-svn: 80981
2009-09-04 02:53:50 +00:00

28 lines
773 B
Python

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