2014-02-14 20:05:41 +08:00
|
|
|
set(DFSAN_LIT_TESTS_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
|
|
|
|
configure_lit_site_cfg(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg)
|
|
|
|
|
2014-02-20 17:47:18 +08:00
|
|
|
set(DFSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
|
|
|
|
if(NOT COMPILER_RT_STANDALONE_BUILD)
|
|
|
|
list(APPEND DFSAN_TEST_DEPS dfsan)
|
|
|
|
endif()
|
|
|
|
|
2014-02-14 20:05:41 +08:00
|
|
|
add_lit_testsuite(check-dfsan "Running the DataFlowSanitizer tests"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS ${DFSAN_TEST_DEPS})
|
|
|
|
set_target_properties(check-dfsan PROPERTIES FOLDER "DFSan tests")
|