Home | History | Annotate | Download | only in msan
      1 set(MSAN_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
      2 
      3 configure_lit_site_cfg(
      4   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
      5   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
      6 
      7 set(MSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
      8 if(NOT COMPILER_RT_STANDALONE_BUILD)
      9   list(APPEND MSAN_TEST_DEPS msan)
     10 endif()
     11 
     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)
     17 endif()
     18 
     19 add_lit_testsuite(check-msan "Running the MemorySanitizer tests"
     20   ${CMAKE_CURRENT_BINARY_DIR}
     21   DEPENDS ${MSAN_TEST_DEPS}
     22   )
     23 set_target_properties(check-msan PROPERTIES FOLDER "MSan tests")
     24