2018-06-23 04:50:07 +08:00
|
|
|
configure_lit_site_cfg(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py
|
|
|
|
MAIN_CONFIG
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py
|
|
|
|
)
|
|
|
|
|
|
|
|
set(BOLT_TEST_PARAMS
|
|
|
|
bolt_site_config=${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg
|
|
|
|
)
|
|
|
|
|
|
|
|
list(APPEND BOLT_TEST_DEPS
|
2021-06-30 00:54:08 +08:00
|
|
|
llc
|
2018-06-23 04:50:07 +08:00
|
|
|
llvm-config
|
|
|
|
FileCheck count not
|
2019-10-15 07:03:54 +08:00
|
|
|
llvm-bolt
|
|
|
|
perf2bolt
|
|
|
|
merge-fdata
|
2018-06-23 04:50:07 +08:00
|
|
|
llvm-nm
|
|
|
|
llvm-objdump
|
|
|
|
llvm-readobj
|
|
|
|
yaml2obj
|
2021-05-05 07:45:28 +08:00
|
|
|
llvm-strip
|
2021-05-14 06:36:43 +08:00
|
|
|
llvm-dwarfdump
|
|
|
|
llvm-mc
|
2021-06-30 00:54:08 +08:00
|
|
|
llvm-objcopy
|
2021-09-23 06:53:38 +08:00
|
|
|
clang
|
|
|
|
lld
|
2018-06-23 04:50:07 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
add_custom_target(bolt-test-depends DEPENDS ${BOLT_TEST_DEPS})
|
|
|
|
set_target_properties(bolt-test-depends PROPERTIES FOLDER "BOLT tests")
|
|
|
|
|
|
|
|
add_lit_testsuite(check-bolt "Running the BOLT regression tests"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
PARAMS ${BOLT_TEST_PARAMS}
|
|
|
|
DEPENDS ${BOLT_TEST_DEPS}
|
|
|
|
ARGS ${BOLT_TEST_EXTRA_ARGS}
|
|
|
|
)
|
|
|
|
set_target_properties(check-bolt PROPERTIES FOLDER "BOLT tests")
|
|
|
|
|
|
|
|
add_lit_testsuites(BOLT ${CMAKE_CURRENT_SOURCE_DIR}
|
|
|
|
PARAMS ${BOLT_TEST_PARAMS}
|
|
|
|
DEPENDS ${BOLT_TEST_DEPS}
|
|
|
|
)
|