summaryrefslogtreecommitdiff
path: root/test/Unit
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-08 09:07:51 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-08 09:07:51 +0000
commitfb4fb6ddb0f26ad0269a93f2edc8baa490984122 (patch)
tree4404be2e2052568eda43e0f3179844cbb5ce9570 /test/Unit
parent16bc8783c9d5cf39a03afdada99bfde7948999f2 (diff)
downloadllvm-fb4fb6ddb0f26ad0269a93f2edc8baa490984122.tar.gz
llvm-fb4fb6ddb0f26ad0269a93f2edc8baa490984122.tar.bz2
llvm-fb4fb6ddb0f26ad0269a93f2edc8baa490984122.tar.xz
Switch to using 'lit.site.cfg.in' for the site config template for Unit tests,
and generate it for CMake builds as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86451 91177308-0d34-0410-b5e6-96231b3b80d8
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 6fd39988ae..8321593cf7 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 0000000000..c190ffa68e
--- /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")