aboutsummaryrefslogtreecommitdiff
path: root/lib/lit.common.unit.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lit.common.unit.cfg')
-rw-r--r--lib/lit.common.unit.cfg21
1 files changed, 21 insertions, 0 deletions
diff --git a/lib/lit.common.unit.cfg b/lib/lit.common.unit.cfg
new file mode 100644
index 000000000000..8250b4a829c6
--- /dev/null
+++ b/lib/lit.common.unit.cfg
@@ -0,0 +1,21 @@
+# -*- Python -*-
+
+# Configuration file for 'lit' test runner.
+# This file contains common config setup rules for unit tests in various
+# compiler-rt testsuites.
+
+import os
+
+# Setup test format
+build_type = getattr(config, "build_type", "Debug")
+config.test_format = lit.formats.GoogleTest(build_type, "Test")
+
+# Setup test suffixes.
+config.suffixes = []
+
+# Propagate the temp directory. Windows requires this because it uses \Windows\
+# if none of these are present.
+if 'TMP' in os.environ:
+ config.environment['TMP'] = os.environ['TMP']
+if 'TEMP' in os.environ:
+ config.environment['TEMP'] = os.environ['TEMP']