2019-06-26 17:51:06 +02:00
|
|
|
set(DEBUGGERDIR "${PROJECT_SOURCE_DIR}/src/plugins/debugger")
|
2019-05-12 22:20:56 +02:00
|
|
|
|
|
|
|
|
add_qtc_test(tst_debugger_disassembler
|
|
|
|
|
INCLUDES "${DEBUGGERDIR}"
|
|
|
|
|
SOURCES
|
|
|
|
|
tst_disassembler.cpp
|
|
|
|
|
"${DEBUGGERDIR}/disassemblerlines.cpp" "${DEBUGGERDIR}/disassemblerlines.h"
|
|
|
|
|
)
|
|
|
|
|
|
2020-07-06 12:52:53 +02:00
|
|
|
option(WITH_DEBUGGER_DUMPERS "Include tests for debugger pretty printers" ON)
|
2019-05-12 22:20:56 +02:00
|
|
|
if (WITH_DEBUGGER_DUMPERS)
|
|
|
|
|
add_qtc_test(tst_debugger_dumpers
|
2020-06-30 11:44:43 +02:00
|
|
|
TIMEOUT 0
|
2019-05-12 22:20:56 +02:00
|
|
|
DEPENDS Qt5::Network Utils
|
2019-06-26 17:51:06 +02:00
|
|
|
DEFINES DUMPERDIR="${PROJECT_SOURCE_DIR}/share/qtcreator/debugger"
|
2019-05-12 22:20:56 +02:00
|
|
|
INCLUDES
|
|
|
|
|
"${DEBUGGERDIR}"
|
|
|
|
|
SOURCES
|
|
|
|
|
"${DEBUGGERDIR}/debuggerprotocol.cpp" "${DEBUGGERDIR}/debuggerprotocol.h"
|
|
|
|
|
"${DEBUGGERDIR}/simplifytype.cpp" "${DEBUGGERDIR}/simplifytype.h"
|
|
|
|
|
"${DEBUGGERDIR}/watchdata.cpp" "${DEBUGGERDIR}/watchdata.h"
|
|
|
|
|
"${DEBUGGERDIR}/watchutils.cpp" "${DEBUGGERDIR}/watchutils.h"
|
|
|
|
|
tst_dumpers.cpp
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
add_qtc_test(tst_debugger_gdb
|
|
|
|
|
DEPENDS Qt5::Network Utils
|
|
|
|
|
INCLUDES "${DEBUGGERDIR}"
|
|
|
|
|
SOURCES
|
|
|
|
|
tst_gdb.cpp
|
|
|
|
|
"${DEBUGGERDIR}/debuggerprotocol.cpp" "${DEBUGGERDIR}/debuggerprotocol.h"
|
|
|
|
|
)
|
|
|
|
|
|
2020-08-12 00:18:00 +02:00
|
|
|
add_qtc_test(tst_debugger_protocol
|
|
|
|
|
DEPENDS Qt5::Network Utils
|
|
|
|
|
INCLUDES
|
|
|
|
|
"${DEBUGGERDIR}"
|
|
|
|
|
SOURCES
|
|
|
|
|
"${DEBUGGERDIR}/debuggerprotocol.cpp" "${DEBUGGERDIR}/debuggerprotocol.h"
|
|
|
|
|
tst_protocol.cpp
|
|
|
|
|
)
|
|
|
|
|
|
2019-05-12 22:20:56 +02:00
|
|
|
add_qtc_test(tst_debugger_offsets
|
|
|
|
|
DEPENDS Qt5::CorePrivate
|
|
|
|
|
INCLUDES "${DEBUGGERDIR}"
|
|
|
|
|
SOURCES tst_offsets.cpp
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
add_qtc_test(tst_debugger_simplifytypes
|
|
|
|
|
INCLUDES "${DEBUGGERDIR}"
|
2019-09-06 00:52:23 +02:00
|
|
|
DEPENDS Utils
|
|
|
|
|
DEFINES DUMPERDIR="${PROJECT_SOURCE_DIR}/share/qtcreator/debugger"
|
2019-05-12 22:20:56 +02:00
|
|
|
SOURCES
|
|
|
|
|
tst_simplifytypes.cpp
|
|
|
|
|
"${DEBUGGERDIR}/simplifytype.cpp" "${DEBUGGERDIR}/simplifytype.h"
|
|
|
|
|
)
|