Commit ab41c294 authored by con's avatar con

Make extension system tests work in new location

parent 71fd308c
......@@ -5,6 +5,7 @@ SUBDIRS += \
changeset \
cplusplus \
debugger \
extensionsystem \
fakevim \
generichighlighter \
# icheckbuild \
......
#set COPYFILES and COPYDIR
# stolen from qtcreatorplugin.pri
copy2build.input = COPYFILES
copy2build.output = $$COPYDIR/${QMAKE_FUNC_FILE_IN_stripSrcDir}
isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copy2build.name = COPY ${QMAKE_FILE_IN}
copy2build.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += copy2build
!equals(_PRO_FILE_PWD_, $$OUT_PWD) { #only do something in case of shadow build
# stolen from qtcreatorplugin.pri
copy2build.input = COPYFILES
copy2build.output = $$COPYDIR/${QMAKE_FUNC_FILE_IN_stripSrcDir}
isEmpty(vcproj):copy2build.variable_out = PRE_TARGETDEPS
copy2build.commands = $$QMAKE_COPY ${QMAKE_FILE_IN} ${QMAKE_FILE_OUT}
copy2build.name = COPY ${QMAKE_FILE_IN}
copy2build.CONFIG += no_link
QMAKE_EXTRA_COMPILERS += copy2build
}
......@@ -5,9 +5,9 @@ HEADERS += plugin1.h
OTHER_FILES = $$PWD/plugin.xml
include(../../../../../../../../qtcreator.pri)
include(../../../../../extensionsystem.pri)
include(../../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../../qtcreator.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
......@@ -5,9 +5,9 @@ HEADERS += plugin2.h
OTHER_FILES = $$PWD/plugin.xml
include(../../../../../../../../qtcreator.pri)
include(../../../../../extensionsystem.pri)
include(../../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../../qtcreator.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
......@@ -5,9 +5,9 @@ HEADERS += plugin3.h
OTHER_FILES = $$PWD/plugin.xml
include(../../../../../../../../qtcreator.pri)
include(../../../../../extensionsystem.pri)
include(../../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../../qtcreator.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
......@@ -5,9 +5,9 @@ HEADERS += plugin1.h
OTHER_FILES = $$PWD/plugin.spec
include(../../../../../../../../qtcreator.pri)
include(../../../../../extensionsystem.pri)
include(../../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../../qtcreator.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
......@@ -5,9 +5,9 @@ HEADERS += plugin2.h
OTHER_FILES = $$PWD/plugin.spec
include(../../../../../../../../qtcreator.pri)
include(../../../../../extensionsystem.pri)
include(../../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../../qtcreator.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
......@@ -5,9 +5,9 @@ HEADERS += plugin3.h
OTHER_FILES = $$PWD/plugin.spec
include(../../../../../../../../qtcreator.pri)
include(../../../../../extensionsystem.pri)
include(../../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../../qtcreator.pri)
include(../../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
......@@ -6,8 +6,8 @@ TARGET = pluginmanager
# Input
include(../../../../../../tests/auto/qttest.pri)
include(../../../extensionsystem.pri)
include(../../qttest.pri)
include(../../../../src/libs/extensionsystem/extensionsystem.pri)
SOURCES += tst_pluginmanager.cpp
......
# -- run the plugin test from this directory.
export LD_LIBRARY_PATH=../../../../../../lib:$LD_LIBRARY_PATH
export DYLD_LIBRARY_PATH=../../../../../../bin/QtCreator.app/Contents/PlugIns:$DYLD_LIBRARY_PATH # mac
exec ./test
......@@ -20,8 +20,8 @@ OTHER_FILES += \
$$PWD/testdependencies/spec5.xml \
$$PWD/testdir/spec.xml
include(../../../../../../tests/auto/qttest.pri)
include(../../../extensionsystem.pri)
include(../../qttest.pri)
include(../../../../src/libs/extensionsystem/extensionsystem.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$OTHER_FILES
......
include(../../../../../../../qtcreator.pri)
TEMPLATE = lib
TARGET = $$qtLibraryName(test)
DEFINES += MYPLUGIN_LIBRARY
SOURCES += testplugin.cpp
HEADERS += testplugin.h testplugin_global.h
OTHER_FILES += testplugin.xml
include(../../../../extensionsystem.pri)
include(../../../../../../../tests/auto/qttestrpath.pri)
include(../../../../../qtcreator.pri)
include(../../../../../src/libs/extensionsystem/extensionsystem.pri)
include(../../../qttestrpath.pri)
COPYDIR = $$OUT_PWD
COPYFILES = $$PWD/testplugin.xml
include(../../copy.pri)
TARGET = $$qtLibraryName(test)
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