1 set(SCUDO_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
2 set(SCUDO_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
6 set(SCUDO_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
7 if(NOT COMPILER_RT_STANDALONE_BUILD)
8 list(APPEND SCUDO_TEST_DEPS scudo)
11 configure_lit_site_cfg(
12 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
13 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
16 set(SCUDO_TEST_ARCH ${SCUDO_SUPPORTED_ARCH})
17 foreach(arch ${SCUDO_TEST_ARCH})
18 set(SCUDO_TEST_TARGET_ARCH ${arch})
19 string(TOLOWER "-${arch}" SCUDO_TEST_CONFIG_SUFFIX)
20 get_test_cc_for_arch(${arch} SCUDO_TEST_TARGET_CC SCUDO_TEST_TARGET_CFLAGS)
21 string(TOUPPER ${arch} ARCH_UPPER_CASE)
22 set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
24 configure_lit_site_cfg(
25 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
26 ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
27 list(APPEND SCUDO_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
30 add_subdirectory(standalone)
32 add_lit_testsuite(check-scudo "Running the Scudo Hardened Allocator tests"
34 DEPENDS ${SCUDO_TEST_DEPS})
35 set_target_properties(check-scudo PROPERTIES FOLDER "Compiler-RT Misc")