mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-14 19:49:36 +00:00
b9b64468ca
This is how similar booleans are handled, and seems to work for me locally. llvm-svn: 362039
28 lines
788 B
CMake
28 lines
788 B
CMake
# 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
|
|
clang
|
|
FileCheck
|
|
count
|
|
llvm-objdump
|
|
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")
|