diff options
author | Stephen Hines <srhines@google.com> | 2014-06-09 17:00:55 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-06-09 17:00:55 +0000 |
commit | 0c5f13c0c4499eaf42ab5e9e2ceabd4e20e36861 (patch) | |
tree | f4f29ff2e71102ee86111bc695830ae5850ec50c /test | |
parent | dab1b938d421e45b63e9a46f2f2a389aac32c193 (diff) | |
parent | 0d041145196fef243311f50b9bf388c1a5263417 (diff) | |
download | external_llvm-0c5f13c0c4499eaf42ab5e9e2ceabd4e20e36861.zip external_llvm-0c5f13c0c4499eaf42ab5e9e2ceabd4e20e36861.tar.gz external_llvm-0c5f13c0c4499eaf42ab5e9e2ceabd4e20e36861.tar.bz2 |
am 0d041145: am 19c6fbb3: Merge "Adds the ability to run the llvm test suite in-tree."
* commit '0d041145196fef243311f50b9bf388c1a5263417':
Adds the ability to run the llvm test suite in-tree.
Diffstat (limited to 'test')
-rw-r--r-- | test/Unit/lit.site.cfg | 26 | ||||
-rw-r--r-- | test/lit.site.cfg | 40 |
2 files changed, 66 insertions, 0 deletions
diff --git a/test/Unit/lit.site.cfg b/test/Unit/lit.site.cfg new file mode 100644 index 0000000..be9dd33 --- /dev/null +++ b/test/Unit/lit.site.cfg @@ -0,0 +1,26 @@ +import sys +import os + +aosp_dir = os.getenv("ANDROID_BUILD_TOP") + +## Autogenerated by LLVM/Clang configuration. +# Do not edit! +config.llvm_src_root = aosp_dir + "/external/llvm" +config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm" +config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin" +config.llvm_build_mode = "Release" +config.enable_shared = 0 +config.shlibdir = aosp_dir + "/out/host/linux-x86/lib" + +# Support substitution of the tools_dir and build_mode with user parameters. +# This is used when we can't determine the tool dir at configuration time. +try: + config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params + config.llvm_build_mode = config.llvm_build_mode % lit_config.params +except KeyError: + e = sys.exc_info()[1] + key, = e.args + lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) + +# Let the main config do the real work. +lit_config.load_config(config, aosp_dir + "/external/llvm/test/Unit/lit.cfg") diff --git a/test/lit.site.cfg b/test/lit.site.cfg new file mode 100644 index 0000000..4614eb8 --- /dev/null +++ b/test/lit.site.cfg @@ -0,0 +1,40 @@ +import sys +import os + +aosp_dir = os.getenv("ANDROID_BUILD_TOP") + +## Autogenerated by LLVM/Clang configuration. +# Do not edit! +config.host_triple = "x86_64-unknown-linux-gnu" +config.target_triple = "x86_64-unknown-linux-gnu" +config.llvm_src_root = aosp_dir + "/external/llvm" +config.llvm_obj_root = aosp_dir + "/out/host/linux-x86/obj/test_llvm" +config.llvm_tools_dir = aosp_dir + "/out/host/linux-x86/bin" +config.llvm_shlib_dir = aosp_dir + "/out/host/linux-x86/lib" +config.llvm_shlib_ext = ".so" +config.llvm_exe_ext = "" +config.lit_tools_dir = "" +config.python_executable = "/usr/bin/python" +config.ocamlopt_executable = "" +config.enable_shared = 0 +config.enable_assertions = 0 +config.targets_to_build = " X86 AArch64 ARM Mips" +config.llvm_bindings = "" +config.host_os = "Linux" +config.host_arch = "x86_64" +config.llvm_use_intel_jitevents = "OFF" +config.llvm_use_sanitizer = "" +config.have_zlib = "0" + +# Support substitution of the tools_dir with user parameters. This is +# used when we can't determine the tool dir at configuration time. +try: + config.llvm_tools_dir = config.llvm_tools_dir % lit_config.params + config.llvm_shlib_dir = config.llvm_shlib_dir % lit_config.params +except KeyError: + e = sys.exc_info()[1] + key, = e.args + lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) + +# Let the main config do the real work. +lit_config.load_config(config, aosp_dir + "/external/llvm/test/lit.cfg") |