3 # Configuration file for the 'lit' test runner.
5 # Load the main clang test config so we can leech its clang finding logic.
6 lit.load_config(config, os.path.join(os.path.dirname(__file__),
7 '..', '..', 'test', 'lit.cfg'))
8 assert config.clang, "Failed to set clang!?"
10 # name: The name of this test suite.
11 config.name = 'Clang-Opt-Tests'
13 # suffixes: A list of file extensions to treat as test files.
16 # Reset these from the Clang config.
18 # test_source_root: The root path where tests are located.
19 config.test_source_root = os.path.dirname(__file__)
21 # test_exec_root: The root path where tests should be run.
22 clang_obj_root = getattr(config, 'clang_obj_root', None)
23 if clang_obj_root is not None:
24 config.test_exec_root = os.path.join(clang_obj_root, 'utils',