mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
Move shared configs for lit test suites to test/ and unittests/ directories
llvm-svn: 201399
This commit is contained in:
@@ -248,8 +248,6 @@ endif()
|
||||
add_subdirectory(lib)
|
||||
|
||||
if(LLVM_INCLUDE_TESTS)
|
||||
# Currently the tests have not been ported to CMake, so disable this
|
||||
# directory.
|
||||
#
|
||||
#add_subdirectory(test)
|
||||
add_subdirectory(test)
|
||||
add_subdirectory(unittests)
|
||||
endif()
|
||||
|
||||
@@ -34,13 +34,3 @@ if(LLVM_USE_SANITIZER STREQUAL "")
|
||||
endif()
|
||||
|
||||
add_subdirectory(builtins)
|
||||
|
||||
# Generate configs for running lit and unit tests.
|
||||
configure_lit_site_cfg(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lit.common.configured.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lit.common.configured)
|
||||
|
||||
configure_lit_site_cfg(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lit.common.unit.configured.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lit.common.unit.configured)
|
||||
|
||||
|
||||
@@ -11,7 +11,7 @@ config.bits = "@ASAN_TEST_BITS@"
|
||||
config.android = "@CAN_TARGET_arm_android@"
|
||||
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Load tool-specific config that would do the real work.
|
||||
lit_config.load_config(config, "@ASAN_SOURCE_DIR@/lit_tests/lit.cfg")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Do not edit!
|
||||
|
||||
# Load common config for all compiler-rt unit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.unit.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
|
||||
|
||||
# Setup config name.
|
||||
config.name = 'AddressSanitizer-Unit'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Load tool-specific config that would do the real work.
|
||||
lit_config.load_config(config, "@DFSAN_SOURCE_DIR@/lit_tests/lit.cfg")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Tool-specific config options.
|
||||
config.lsan_lit_src_root = "@LSAN_LIT_SOURCE_DIR@"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Tool-specific config options.
|
||||
config.lsan_lit_src_root = "@LSAN_LIT_SOURCE_DIR@"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Do not edit!
|
||||
|
||||
# Load common config for all compiler-rt unit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.unit.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
|
||||
|
||||
# Setup config name.
|
||||
config.name = 'LeakSanitizer-Unit'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Do not edit!
|
||||
|
||||
# Load common config for all compiler-rt unit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.unit.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
|
||||
|
||||
# Setup config name.
|
||||
config.name = 'MemorySanitizer-Unit'
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Load tool-specific config that would do the real work.
|
||||
lit_config.load_config(config, "@MSAN_SOURCE_DIR@/lit_tests/lit.cfg")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Do not edit!
|
||||
|
||||
# Load common config for all compiler-rt unit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.unit.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
|
||||
|
||||
# Setup config name.
|
||||
config.name = 'SanitizerCommon-Unit'
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Do not edit!
|
||||
|
||||
# Load common config for all compiler-rt unit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.unit.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/unittests/lit.common.unit.configured")
|
||||
|
||||
# Load tool-specific config that would do the real work.
|
||||
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/Unit/lit.cfg")
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
# Do not edit!
|
||||
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Load tool-specific config that would do the real work.
|
||||
lit_config.load_config(config, "@CMAKE_CURRENT_SOURCE_DIR@/lit.cfg")
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Tool-specific config options.
|
||||
config.ubsan_lit_tests_dir = "@UBSAN_LIT_TESTS_DIR@"
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Load common config for all compiler-rt lit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/lib/lit.common.configured")
|
||||
lit_config.load_config(config, "@COMPILER_RT_BINARY_DIR@/test/lit.common.configured")
|
||||
|
||||
# Tool-specific config options.
|
||||
config.ubsan_lit_tests_dir = "@UBSAN_LIT_TESTS_DIR@"
|
||||
|
||||
7
compiler-rt/test/CMakeLists.txt
Normal file
7
compiler-rt/test/CMakeLists.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
configure_lit_site_cfg(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lit.common.configured.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lit.common.configured)
|
||||
|
||||
# BlocksRuntime and builtins testsuites are not yet ported to lit.
|
||||
# add_subdirectory(BlocksRuntime)
|
||||
# add_subdirectory(builtins)
|
||||
@@ -29,4 +29,4 @@ except KeyError,e:
|
||||
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@/lib/lit.common.cfg")
|
||||
lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/test/lit.common.cfg")
|
||||
3
compiler-rt/unittests/CMakeLists.txt
Normal file
3
compiler-rt/unittests/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
||||
configure_lit_site_cfg(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/lit.common.unit.configured.in
|
||||
${CMAKE_CURRENT_BINARY_DIR}/lit.common.unit.configured)
|
||||
@@ -21,4 +21,4 @@ except KeyError,e:
|
||||
lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key, key))
|
||||
|
||||
# Setup attributes common for all compiler-rt unit tests.
|
||||
lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/lib/lit.common.unit.cfg")
|
||||
lit_config.load_config(config, "@COMPILER_RT_SOURCE_DIR@/unittests/lit.common.unit.cfg")
|
||||
Reference in New Issue
Block a user