1set(DFSAN_LIT_TESTS_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(DFSAN_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
8if(NOT COMPILER_RT_STANDALONE_BUILD)
9  list(APPEND DFSAN_TEST_DEPS dfsan)
10endif()
11
12add_lit_testsuite(check-dfsan "Running the DataFlowSanitizer tests"
13  ${CMAKE_CURRENT_BINARY_DIR}
14  DEPENDS ${DFSAN_TEST_DEPS})
15set_target_properties(check-dfsan PROPERTIES FOLDER "DFSan tests")
16