diff options
Diffstat (limited to 'test/CMakeLists.txt')
-rw-r--r-- | test/CMakeLists.txt | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 03d4571e0de78..9b9c515a304d2 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -23,7 +23,7 @@ if(NOT ANDROID) # Use LLVM utils and Clang from the same build tree. list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS clang clang-headers FileCheck count not llvm-config llvm-nm llvm-objdump - llvm-symbolizer compiler-rt-headers sancov) + llvm-readobj llvm-symbolizer compiler-rt-headers sancov) if (COMPILER_RT_HAS_PROFILE) list(APPEND SANITIZER_COMMON_LIT_TEST_DEPS profile) endif() @@ -45,6 +45,9 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS) if(COMPILER_RT_HAS_DFSAN) add_subdirectory(dfsan) endif() + if (COMPILER_RT_HAS_INTERCEPTION) + add_subdirectory(interception) + endif() if(COMPILER_RT_HAS_LSAN) add_subdirectory(lsan) endif() @@ -76,6 +79,9 @@ if(COMPILER_RT_CAN_EXECUTE_TESTS) if(COMPILER_RT_HAS_SCUDO) add_subdirectory(scudo) endif() + if(COMPILER_RT_HAS_XRAY) + add_subdirectory(xray) + endif() endif() if(COMPILER_RT_STANDALONE_BUILD) @@ -83,8 +89,13 @@ if(COMPILER_RT_STANDALONE_BUILD) # introduce a rule to run to run all of them. get_property(LLVM_LIT_TESTSUITES GLOBAL PROPERTY LLVM_LIT_TESTSUITES) get_property(LLVM_LIT_DEPENDS GLOBAL PROPERTY LLVM_LIT_DEPENDS) - add_lit_target(check-all + add_lit_target(check-compiler-rt "Running all regression tests" ${LLVM_LIT_TESTSUITES} DEPENDS ${LLVM_LIT_DEPENDS}) + if(NOT TARGET check-all) + add_custom_target(check-all) + endif() + add_custom_target(compiler-rt-test-depends DEPENDS ${LLVM_LIT_DEPENDS}) + add_dependencies(check-all check-compiler-rt) endif() |