summaryrefslogtreecommitdiff
path: root/clang/utils/OptionalTests/lit.cfg
blob: 592c424725251dd5612d2cef327c6a4136e3197c (about) (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
# -*- Python -*-

# Configuration file for the 'lit' test runner.

# Load the main clang test config so we can leech its clang finding logic.
lit.load_config(config, os.path.join(os.path.dirname(__file__),
                                     '..', '..', 'test', 'lit.cfg'))
assert config.clang, "Failed to set clang!?"

# name: The name of this test suite.
config.name = 'Clang-Opt-Tests'

# suffixes: A list of file extensions to treat as test files.
config.suffixes = []

# Reset these from the Clang config.

# test_source_root: The root path where tests are located.
config.test_source_root = os.path.dirname(__file__)

# test_exec_root: The root path where tests should be run.
clang_obj_root = getattr(config, 'clang_obj_root', None)
if clang_obj_root is not None:
    config.test_exec_root = os.path.join(clang_obj_root, 'utils',
                                         'OptionalTests')