2017-12-13 00:54:20 +08:00
|
|
|
# Debug Info tests. These tests invoke clang to generate programs with
|
|
|
|
# various types of debug info, and then run those programs under a debugger
|
|
|
|
# such as GDB or LLDB to verify the results.
|
|
|
|
|
|
|
|
set(DEBUGINFO_TESTS_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set(DEBUGINFO_TESTS_BINARY_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
|
|
|
|
|
|
|
set(DEBUGINFO_TEST_DEPS
|
2018-07-19 02:17:39 +08:00
|
|
|
clang
|
2018-07-19 04:10:43 +08:00
|
|
|
FileCheck
|
2017-12-13 00:54:20 +08:00
|
|
|
count
|
2018-02-27 04:56:45 +08:00
|
|
|
llvm-objdump
|
2017-12-13 00:54:20 +08:00
|
|
|
not
|
|
|
|
)
|
|
|
|
|
|
|
|
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
|
|
|
|
)
|
|
|
|
|
|
|
|
add_lit_testsuite(check-debuginfo "Running debug info integration tests"
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
DEPENDS ${DEBUGINFO_TEST_DEPS}
|
|
|
|
)
|
|
|
|
set_target_properties(check-debuginfo PROPERTIES FOLDER "Debug info tests")
|