2014-04-01 06:45:37 +08:00
|
|
|
set(PROFILE_LIT_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
2014-04-01 07:14:28 +08:00
|
|
|
set(PROFILE_LIT_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
2014-04-01 06:45:37 +08:00
|
|
|
|
2014-04-02 00:05:15 +08:00
|
|
|
set(PROFILE_TEST_DEPS ${SANITIZER_COMMON_LIT_TEST_DEPS})
|
2014-04-01 06:45:37 +08:00
|
|
|
if(NOT COMPILER_RT_STANDALONE_BUILD)
|
2014-04-02 00:05:15 +08:00
|
|
|
list(APPEND PROFILE_TEST_DEPS profile llvm-profdata)
|
2014-04-01 06:45:37 +08:00
|
|
|
endif()
|
|
|
|
|
|
|
|
configure_lit_site_cfg(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
|
|
|
)
|
|
|
|
add_lit_testsuite(check-profile "Running the profile tests"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS ${PROFILE_TEST_DEPS})
|
|
|
|
set_target_properties(check-profile PROPERTIES FOLDER "Profile tests")
|