aboutsummaryrefslogtreecommitdiffstats
path: root/test/Unit
diff options
context:
space:
mode:
Diffstat (limited to 'test/Unit')
-rw-r--r--test/Unit/lit.cfg3
-rw-r--r--test/Unit/lit.site.cfg.in10
2 files changed, 11 insertions, 2 deletions
diff --git a/test/Unit/lit.cfg b/test/Unit/lit.cfg
index 6fd3998..8321593 100644
--- a/test/Unit/lit.cfg
+++ b/test/Unit/lit.cfg
@@ -7,8 +7,7 @@ import os
# name: The name of this test suite.
config.name = 'LLVM-Unit'
-# suffixes: A list of file extensions to treat as test files, this is actually
-# set by on_clone().
+# suffixes: A list of file extensions to treat as test files.
config.suffixes = []
# test_source_root: The root path where tests are located.
diff --git a/test/Unit/lit.site.cfg.in b/test/Unit/lit.site.cfg.in
new file mode 100644
index 0000000..c190ffa
--- /dev/null
+++ b/test/Unit/lit.site.cfg.in
@@ -0,0 +1,10 @@
+## Autogenerated by LLVM/Clang configuration.
+# Do not edit!
+config.llvm_src_root = "@LLVM_SOURCE_DIR@"
+config.llvm_obj_root = "@LLVM_BINARY_DIR@"
+config.llvm_tools_dir = "@LLVM_TOOLS_DIR@"
+config.llvmgcc_dir = "@LLVMGCCDIR@"
+config.llvm_build_mode = "@LLVM_BUILD_MODE@"
+
+# Let the main config do the real work.
+lit.load_config(config, "@LLVM_SOURCE_DIR@/test/Unit/lit.cfg")