blob: 592c424725251dd5612d2cef327c6a4136e3197c [file] [log] [blame]
Daniel Dunbar6d44f6e2010-01-21 16:55:39 +00001# -*- Python -*-
2
3# Configuration file for the 'lit' test runner.
4
5# Load the main clang test config so we can leech its clang finding logic.
6lit.load_config(config, os.path.join(os.path.dirname(__file__),
7 '..', '..', 'test', 'lit.cfg'))
8assert config.clang, "Failed to set clang!?"
9
10# name: The name of this test suite.
11config.name = 'Clang-Opt-Tests'
12
13# suffixes: A list of file extensions to treat as test files.
14config.suffixes = []
15
16# Reset these from the Clang config.
Daniel Dunbarc67bb592010-01-21 17:09:39 +000017
18# test_source_root: The root path where tests are located.
19config.test_source_root = os.path.dirname(__file__)
20
21# test_exec_root: The root path where tests should be run.
22clang_obj_root = getattr(config, 'clang_obj_root', None)
23if clang_obj_root is not None:
24 config.test_exec_root = os.path.join(clang_obj_root, 'utils',
25 'OptionalTests')
26