1set(MSAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) 2 3configure_lit_site_cfg( 4 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in 5 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg) 6 7set(MSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS}) 8if(NOT COMPILER_RT_STANDALONE_BUILD) 9 list(APPEND MSAN_TEST_DEPS msan) 10endif() 11 12if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_LIBCXX_SOURCES) 13 configure_lit_site_cfg( 14 ${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in 15 ${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg) 16 list(APPEND MSAN_TEST_DEPS MsanUnitTests) 17endif() 18 19add_lit_testsuite(check-msan "Running the MemorySanitizer tests" 20 ${CMAKE_CURRENT_BINARY_DIR} 21 DEPENDS ${MSAN_TEST_DEPS} 22 ) 23set_target_properties(check-msan PROPERTIES FOLDER "MSan tests") 24