2021-03-20 08:57:17 +08:00
|
|
|
# Configure the Shell test suite.
|
2019-10-25 01:54:48 +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)
|
|
|
|
configure_file(
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/lit-lldb-init.in
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/lit-lldb-init)
|
2020-01-22 05:21:34 +08:00
|
|
|
|
2021-03-20 08:57:17 +08:00
|
|
|
if (CMAKE_GENERATOR STREQUAL "Xcode")
|
|
|
|
# Xcode does not get the auto-generated targets. We need to create
|
|
|
|
# check-lldb-shell manually.
|
|
|
|
add_lit_testsuite(check-lldb-shell "Running lldb shell test suite"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS lldb-test-deps)
|
|
|
|
endif()
|