Commit e5222c5d authored by Christian Kandeler's avatar Christian Kandeler

Debugger: Make built-in tests work for shadow builds.

Copy testing resources to build directory.

Task-number: QTCREATORBUG-7834

Change-Id: I8397da049142817a16d433e8805144c4ae6bc305
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@nokia.com>
parent 2fc6b24a
......@@ -159,3 +159,18 @@ include(qml/qml.pri)
include(namedemangler/namedemangler.pri)
include(shared/shared.pri)
equals(TEST, 1):!isEmpty(copydata) {
TEST_DIR = ../../../tests/manual/debugger/simple
INPUT_FILE = $$PWD/$$TEST_DIR/simple.pro
OUTPUT_DIR = $$OUT_PWD/$$TEST_DIR
win32 {
INPUT_FILE ~= s,/,\\\\,g
OUTPUT_DIR ~= s,/,\\\\,g
}
testfile.target = test_resources
testfile.commands = ($$QMAKE_CHK_DIR_EXISTS $$OUTPUT_DIR $$QMAKE_CHK_EXISTS_GLUE $$QMAKE_MKDIR $$OUTPUT_DIR) \
&& $$QMAKE_COPY $$INPUT_FILE $$OUTPUT_DIR
QMAKE_EXTRA_TARGETS += testfile
PRE_TARGETDEPS += $$testfile.target
}
......@@ -4,6 +4,7 @@ import "../QtcPlugin.qbs" as QtcPlugin
QtcPlugin {
name: "Debugger"
type: base.concat(["installed_content"])
Depends { name: "Qt"; submodules: ["widgets", "network", "script"] }
Depends { name: "Core" }
......@@ -31,6 +32,13 @@ QtcPlugin {
"../../shared/registryaccess/"
]
Group {
condition: qbs.buildVariant === "debug"
qbs.installDir: "tests/manual/debugger/simple/"
fileTags: ["install"]
files: ["../../../tests/manual/debugger/simple/simple.pro"]
}
files: [
"debugger.qrc",
"debuggerkitconfigwidget.cpp",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment