Add remote testing support to the lit config
authorJonathan Roelofs <jonathan@codesourcery.com>
Thu, 26 Feb 2015 15:55:01 +0000 (15:55 +0000)
committerJonathan Roelofs <jonathan@codesourcery.com>
Thu, 26 Feb 2015 15:55:01 +0000 (15:55 +0000)
Now that the corresponding support in libcxx has landed (r230592), adding
support here is pretty simple.

llvm-svn: 230643

libcxxabi/test/CMakeLists.txt
libcxxabi/test/lit.site.cfg.in

index 8a713a6..103f559 100644 (file)
@@ -10,6 +10,10 @@ pythonize_bool(LIBCXXABI_BUILD_32_BITS)
 pythonize_bool(LIBCXXABI_ENABLE_SHARED)
 pythonize_bool(LIBCXXABI_ENABLE_THREADS)
 pythonize_bool(LIBCXXABI_USE_LLVM_UNWINDER)
+set(LIBCXXABI_TARGET_INFO "libcxx.test.target_info.LocalTI" CACHE STRING
+    "TargetInfo to use when setting up test environment.")
+set(LIBCXXABI_EXECUTOR "None" CACHE STRING
+    "Executor to use when running tests.")
 
 set(AUTO_GEN_COMMENT "## Autogenerated by libcxxabi configuration.\n# Do not edit!")
 configure_file(
index 8f772fd..c033dbb 100644 (file)
@@ -9,6 +9,8 @@ config.llvm_unwinder            = "@LIBCXXABI_USE_LLVM_UNWINDER@"
 config.enable_threads           = "@LIBCXXABI_ENABLE_THREADS@"
 config.use_sanitizer            = "@LLVM_USE_SANITIZER@"
 config.enable_32bit             = "@LIBCXXABI_BUILD_32_BITS@"
+config.target_info              = "@LIBCXXABI_TARGET_INFO@"
+config.executor                 = "@LIBCXXABI_EXECUTOR@"
 
 # Let the main config do the real work.
 lit_config.load_config(config, "@LIBCXXABI_SOURCE_DIR@/test/lit.cfg")