1 if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_HAS_SCUDO_STANDALONE)
2 configure_lit_site_cfg(
3 ${CMAKE_CURRENT_SOURCE_DIR}/unit/lit.site.cfg.py.in
4 ${CMAKE_CURRENT_BINARY_DIR}/unit/lit.site.cfg.py)
5 list(APPEND SCUDO_STANDALONE_TEST_DEPS ScudoUnitTests)
6 list(APPEND SCUDO_STANDALONE_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/unit)
7 if (COMPILER_RT_HAS_GWP_ASAN)
8 configure_lit_site_cfg(
9 ${CMAKE_CURRENT_SOURCE_DIR}/unit/gwp_asan/lit.site.cfg.py.in
10 ${CMAKE_CURRENT_BINARY_DIR}/unit/gwp_asan/lit.site.cfg.py)
11 list(APPEND SCUDO_STANDALONE_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/unit/gwp_asan)
15 add_lit_testsuite(check-scudo_standalone
16 "Running Scudo Standalone tests"
17 ${SCUDO_STANDALONE_TESTSUITES}
18 DEPENDS ${SCUDO_STANDALONE_TEST_DEPS})
20 set_target_properties(check-scudo_standalone
21 PROPERTIES FOLDER "Compiler-RT Tests")