1 # -*- 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. 6 lit.load_config(config, os.path.join(os.path.dirname(__file__), 7 '..', '..', 'test', 'lit.cfg')) 8 assert config.clang, "Failed to set clang!?" 9 10 # name: The name of this test suite. 11 config.name = 'Clang-Opt-Tests' 12 13 # suffixes: A list of file extensions to treat as test files. 14 config.suffixes = [] 15 16 # Reset these from the Clang config. 17 18 # test_source_root: The root path where tests are located. 19 config.test_source_root = os.path.dirname(__file__) 20 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', 25 'OptionalTests') 26 27