[docs] Fix build-docs.sh
[llvm-project.git] / compiler-rt / test / scudo / standalone / CMakeLists.txt
blob3452398a65b5f4e48bcb1048557831b78a1231a2
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)
12   endif()
13 endif()
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")