1 set(MSAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
3 configure_lit_site_cfg(
4 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
5 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
7 set(MSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
8 if(NOT COMPILER_RT_STANDALONE_BUILD)
9 list(APPEND MSAN_TEST_DEPS msan)
12 if(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)
19 add_lit_testsuite(check-msan "Running the MemorySanitizer tests"
20 ${CMAKE_CURRENT_BINARY_DIR}
21 DEPENDS ${MSAN_TEST_DEPS}
23 set_target_properties(check-msan PROPERTIES FOLDER "MSan tests")