blob: aa3b09d50a4c13b7e16ca528cfcb96cb60a092cb [file] [log] [blame]
Daniel Dunbar33b7f452009-09-16 01:40:13 +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++'
12
13# suffixes: A list of file extensions to treat as test files, this is actually
14# set by on_clone().
15config.suffixes = []
16
17# Reset these from the Clang config.
18config.test_source_root = config.test_exec_root = None
Daniel Dunbar72a0b792009-11-15 07:23:09 +000019
Daniel Dunbarc0513be72009-11-15 08:10:41 +000020# Don't run Clang checks by default.
21config.excludes = []
22if (not lit.params.get('run_clang_syntax') and
23 not lit.params.get('run_clang_all')):
24 config.excludes.append('Clang-Syntax')
25if (not lit.params.get('run_clang_code_syntax') and
26 not lit.params.get('run_clang_all')):
27 config.excludes.append('Clang-Code-Syntax')
28if (not lit.params.get('run_clang_compile') and
29 not lit.params.get('run_clang_all')):
30 config.excludes.append('Clang-Code-Compile')