5 # Configuration file for the 'lit' test runner.
7 # name: The name of this test suite.
10 # testFormat: The test format to use to interpret tests.
11 config.test_format = lit.formats.ShTest(execute_external=False)
13 # suffixes: A list of file extensions to treat as test files.
14 config.suffixes = ['.py']
16 # excludes: A list of individual files to exclude.
17 config.excludes = ['Inputs']
19 # test_source_root: The root path where tests are located.
20 config.test_source_root = os.path.dirname(__file__)
21 config.test_exec_root = config.test_source_root
23 config.target_triple = None
25 src_root = os.path.join(config.test_source_root, '..')
26 config.environment['PYTHONPATH'] = src_root
27 config.substitutions.append(('%{src_root}', src_root))
28 config.substitutions.append(('%{inputs}', os.path.join(
29 src_root, 'tests', 'Inputs')))
30 config.substitutions.append(('%{lit}', os.path.join(src_root, 'lit.py')))
32 # Enable coverage.py reporting, assuming the coverage module has been installed
33 # and sitecustomize.py in the virtualenv has been modified appropriately.
34 if lit.params.get('check-coverage', None):
35 config.environment['COVERAGE_PROCESS_START'] = os.path.join(
36 os.path.dirname(__file__), ".coveragerc")