Alexey Samsonov | 4afc63c | 2012-08-07 08:59:15 +0000 | [diff] [blame] | 1 | # -*- Python -*- |
| 2 | |
| 3 | # Configuration file for 'lit' test runner. |
| 4 | # This file contains common config setup rules for unit tests in various |
| 5 | # compiler-rt testsuites. |
| 6 | |
| 7 | import os |
| 8 | |
| 9 | # Setup test format |
Alexey Samsonov | 48ecaf4 | 2013-01-30 12:18:49 +0000 | [diff] [blame] | 10 | llvm_build_mode = getattr(config, "llvm_build_mode", "Debug") |
| 11 | config.test_format = lit.formats.GoogleTest(llvm_build_mode, "Test") |
Alexey Samsonov | 4afc63c | 2012-08-07 08:59:15 +0000 | [diff] [blame] | 12 | |
| 13 | # Setup test suffixes. |
| 14 | config.suffixes = [] |
| 15 | |
| 16 | # Propagate the temp directory. Windows requires this because it uses \Windows\ |
| 17 | # if none of these are present. |
| 18 | if 'TMP' in os.environ: |
| 19 | config.environment['TMP'] = os.environ['TMP'] |
| 20 | if 'TEMP' in os.environ: |
| 21 | config.environment['TEMP'] = os.environ['TEMP'] |