1 set(TEST_ARCH ${SHADOWCALLSTACK_SUPPORTED_ARCH})
3 set(SHADOWCALLSTACK_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
4 set(SHADOWCALLSTACK_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
6 set(SHADOWCALLSTACK_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
8 foreach(arch ${SHADOWCALLSTACK_SUPPORTED_ARCH})
9 set(SANITIZER_COMMON_TEST_TARGET_ARCH ${arch})
10 get_test_cc_for_arch(${arch}
11 SHADOWSTACK_TEST_TARGET_CC SHADOWSTACK_TEST_TARGET_CFLAGS)
12 configure_lit_site_cfg(
13 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
14 ${CMAKE_CURRENT_BINARY_DIR}/${arch}/lit.site.cfg.py)
15 list(APPEND SHADOWCALLSTACK_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${arch})
18 add_lit_testsuite(check-shadowcallstack "Running the ShadowCallStack tests"
19 ${SHADOWCALLSTACK_TESTSUITES}
20 DEPENDS ${SANITIZER_COMMON_LIT_TEST_DEPS})