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