forked from OSchip/llvm-project
Move config for sanitizer_common tests under test/ for consistency
llvm-svn: 201779
This commit is contained in:
parent
11705b2f10
commit
35a66d15d4
|
@ -143,18 +143,6 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS)
|
||||||
if(CAN_TARGET_i386)
|
if(CAN_TARGET_i386)
|
||||||
add_sanitizer_tests_for_arch(i386)
|
add_sanitizer_tests_for_arch(i386)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Run unittests as a part of lit testsuite.
|
|
||||||
configure_lit_site_cfg(
|
|
||||||
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
|
||||||
)
|
|
||||||
|
|
||||||
add_lit_testsuite(check-sanitizer "Running sanitizer library unittests"
|
|
||||||
${CMAKE_CURRENT_BINARY_DIR}
|
|
||||||
DEPENDS SanitizerUnitTests
|
|
||||||
)
|
|
||||||
set_target_properties(check-sanitizer PROPERTIES FOLDER "Sanitizer unittests")
|
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(ANDROID)
|
if(ANDROID)
|
||||||
|
|
|
@ -36,6 +36,9 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS)
|
||||||
if(MSAN_SUPPORTED_ARCH)
|
if(MSAN_SUPPORTED_ARCH)
|
||||||
add_subdirectory(msan)
|
add_subdirectory(msan)
|
||||||
endif()
|
endif()
|
||||||
|
if(SANITIZER_COMMON_SUPPORTED_ARCH)
|
||||||
|
add_subdirectory(sanitizer_common)
|
||||||
|
endif()
|
||||||
if(TSAN_SUPPORTED_ARCH)
|
if(TSAN_SUPPORTED_ARCH)
|
||||||
add_subdirectory(tsan)
|
add_subdirectory(tsan)
|
||||||
endif()
|
endif()
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
if(COMPILER_RT_INCLUDE_TESTS)
|
||||||
|
configure_lit_site_cfg(
|
||||||
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
|
||||||
|
add_lit_testsuite(check-sanitizer "Running sanitizer library unittests"
|
||||||
|
${CMAKE_CURRENT_BINARY_DIR}
|
||||||
|
DEPENDS SanitizerUnitTests)
|
||||||
|
set_target_properties(check-sanitizer PROPERTIES FOLDER "Sanitizer unittests")
|
||||||
|
endif()
|
|
@ -9,6 +9,7 @@ config.name = 'SanitizerCommon-Unit'
|
||||||
|
|
||||||
# Setup test source and exec root. For unit tests, we define
|
# Setup test source and exec root. For unit tests, we define
|
||||||
# it as build directory with sanitizer_common tests.
|
# it as build directory with sanitizer_common tests.
|
||||||
|
# FIXME: De-hardcode this path.
|
||||||
config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@", "lib",
|
config.test_exec_root = os.path.join("@COMPILER_RT_BINARY_DIR@", "lib",
|
||||||
"sanitizer_common", "tests")
|
"sanitizer_common", "tests")
|
||||||
config.test_source_root = config.test_exec_root
|
config.test_source_root = config.test_exec_root
|
Loading…
Reference in New Issue