diff options
author | Alexey Samsonov <samsonov@google.com> | 2014-02-14 11:00:07 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2014-02-14 11:00:07 +0000 |
commit | e1c4400a92b57ecf62abb892da2a8a0a3be43600 (patch) | |
tree | b454fe437d46bd919e9eb7bce2bc32ea957015ae /test/lit.common.configured.in | |
parent | ea9eb19ec0fea9d387bfe41bb187efd4a1a52fd5 (diff) |
Move shared configs for lit test suites to test/ and unittests/ directories
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@201399 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/lit.common.configured.in')
-rw-r--r-- | test/lit.common.configured.in | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/test/lit.common.configured.in b/test/lit.common.configured.in new file mode 100644 index 000000000..3b1083021 --- /dev/null +++ b/test/lit.common.configured.in @@ -0,0 +1,32 @@ +## Autogenerated by LLVM/Clang configuration. +# Do not edit! + +# Set attribute value if it is unset. +def set_default(attr, value): + if not getattr(config, attr, None): + setattr(config, attr, value) + +# Generic config options for all compiler-rt lit tests. +set_default("target_triple", "@TARGET_TRIPLE@") +set_default("host_arch", "@HOST_ARCH@") +set_default("host_os", "@HOST_OS@") +set_default("llvm_build_mode", "@LLVM_BUILD_MODE@") +set_default("llvm_src_root", "@LLVM_SOURCE_DIR@") +set_default("llvm_obj_root", "@LLVM_BINARY_DIR@") +set_default("compiler_rt_src_root", "@COMPILER_RT_SOURCE_DIR@") +set_default("llvm_tools_dir", "@LLVM_TOOLS_DIR@") +set_default("clang", "@LLVM_BINARY_DIR@/bin/clang") +set_default("compiler_rt_arch", "@COMPILER_RT_SUPPORTED_ARCH@") +set_default("python_executable", "@PYTHON_EXECUTABLE@") +set_default("compiler_rt_debug", @COMPILER_RT_DEBUG_PYBOOL@) + +# LLVM tools dir can be passed in lit parameters, so try to +# apply substitution. +try: + config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params +except KeyError,e: + key, = e.args + lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key)) + +# Setup attributes common for all compiler-rt projects. +lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/test/lit.common.cfg") |