2 set(TEST_ARCH ${X86_64})
4 set(METADATA_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
5 set(METADATA_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
7 set(METADATA_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
8 list(APPEND METADATA_TEST_DEPS asan ubsan)
10 set(SANITIZER_COMMON_TEST_TARGET_ARCH ${X86_64})
11 get_test_cc_for_arch(x86_64 METADATA_TEST_TARGET_CC METADATA_TEST_TARGET_CFLAGS)
12 configure_lit_site_cfg(
13 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
14 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py)
16 add_lit_testsuite(check-sanmd "Running the SanitizerBinaryMetadata tests"
17 ${CMAKE_CURRENT_BINARY_DIR}
18 DEPENDS ${METADATA_TEST_DEPS})
19 set_target_properties(check-sanmd PROPERTIES FOLDER "Compiler-RT Misc")