Home | History | Annotate | Download | only in lit_tests
      1 configure_lit_site_cfg(
      2   ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
      3   ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
      4   )
      5 
      6 if(COMPILER_RT_CAN_EXECUTE_TESTS)
      7   # Run UBSan output tests only if we're sure that clang would produce
      8   # working binaries.
      9   set(UBSAN_TEST_DEPS
     10     clang clang-headers FileCheck count not
     11     ${UBSAN_RUNTIME_LIBRARIES}
     12     )
     13   set(UBSAN_TEST_PARAMS
     14     ubsan_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
     15     )
     16   add_lit_testsuite(check-ubsan "Running UndefinedBehaviorSanitizer tests"
     17     ${CMAKE_CURRENT_BINARY_DIR}
     18     PARAMS ${UBSAN_TEST_PARAMS}
     19     DEPENDS ${UBSAN_TEST_DEPS}
     20     )
     21   set_target_properties(check-ubsan PROPERTIES FOLDER "UBSan unittests")
     22 endif()
     23