1# Configure the Shell test suite. 2configure_lit_site_cfg( 3 ${CMAKE_CURRENT_SOURCE_DIR}/lit.site.cfg.py.in 4 ${CMAKE_CURRENT_BINARY_DIR}/lit.site.cfg.py 5 MAIN_CONFIG 6 ${CMAKE_CURRENT_SOURCE_DIR}/lit.cfg.py) 7configure_file( 8 ${CMAKE_CURRENT_SOURCE_DIR}/lit-lldb-init.in 9 ${CMAKE_CURRENT_BINARY_DIR}/lit-lldb-init) 10 11if (CMAKE_GENERATOR STREQUAL "Xcode") 12 # Xcode does not get the auto-generated targets. We need to create 13 # check-lldb-shell manually. 14 add_lit_testsuite(check-lldb-shell "Running lldb shell test suite" 15 ${CMAKE_CURRENT_BINARY_DIR} 16 DEPENDS lldb-test-deps) 17endif() 18 19# Add a lit test suite that runs the shell test while capturing a reproducer. 20add_lit_testsuite(check-lldb-repro-capture 21 "Running lldb shell test suite with reproducer capture" 22 ${CMAKE_CURRENT_BINARY_DIR} 23 PARAMS "lldb-run-with-repro=capture" 24 EXCLUDE_FROM_CHECK_ALL 25 DEPENDS lldb-test-deps) 26 27# Add a lit test suite that runs the shell test by replaying a reproducer. 28add_lit_testsuite(check-lldb-repro 29 "Running lldb shell test suite with reproducer replay" 30 ${CMAKE_CURRENT_BINARY_DIR} 31 PARAMS "lldb-run-with-repro=replay" 32 EXCLUDE_FROM_CHECK_ALL 33 DEPENDS lldb-test-deps) 34add_dependencies(check-lldb-repro check-lldb-repro-capture) 35