blob: ca00abb65e9f200b004113d1a04c790f97ef369f [file] [log] [blame]
Alexey Samsonov4afc63c2012-08-07 08:59:15 +00001# -*- 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
7import os
8
9# Setup test format
Alexey Samsonov48ecaf42013-01-30 12:18:49 +000010llvm_build_mode = getattr(config, "llvm_build_mode", "Debug")
11config.test_format = lit.formats.GoogleTest(llvm_build_mode, "Test")
Alexey Samsonov4afc63c2012-08-07 08:59:15 +000012
13# Setup test suffixes.
14config.suffixes = []
15
16# Propagate the temp directory. Windows requires this because it uses \Windows\
17# if none of these are present.
18if 'TMP' in os.environ:
19 config.environment['TMP'] = os.environ['TMP']
20if 'TEMP' in os.environ:
21 config.environment['TEMP'] = os.environ['TEMP']