1 set(XRAY_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
4 set(XRAY_FDR_TESTSUITES)
6 set(XRAY_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS} xray)
8 if(NOT COMPILER_RT_STANDALONE_BUILD AND COMPILER_RT_BUILD_XRAY)
9 list(APPEND XRAY_TEST_DEPS llvm-xray)
12 set(XRAY_TEST_ARCH ${XRAY_SUPPORTED_ARCH})
13 if (COMPILER_RT_BUILD_XRAY)
14 foreach(arch ${XRAY_TEST_ARCH})
15 set(XRAY_TEST_TARGET_ARCH ${arch})
16 string(TOLOWER "-${arch}-${OS_NAME}" XRAY_TEST_CONFIG_SUFFIX)
17 get_test_cc_for_arch(${arch} XRAY_TEST_TARGET_CC XRAY_TEST_TARGET_CFLAGS)
18 string(TOUPPER ${arch} ARCH_UPPER_CASE)
19 set(CONFIG_NAME ${ARCH_UPPER_CASE}${OS_NAME}Config)
21 configure_lit_site_cfg(
22 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
23 ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME}/lit.site.cfg.py)
24 list(APPEND XRAY_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/${CONFIG_NAME})
28 add_lit_testsuite(check-xray "Running the XRay tests"
30 DEPENDS ${XRAY_TEST_DEPS})