Commit 36c72ac3 authored by Bill King's avatar Bill King

Tests: More autotest cleanup.

parent f6b24333
include(../qttest.pri)
DEFINES += AGGREGATION_LIBRARY
AGGREGATION_PATH = ../../../src/libs/aggregation
INCLUDEPATH += $$AGGREGATION_PATH
# Input
SOURCES += tst_aggregate.cpp \
$$AGGREGATION_PATH/aggregate.cpp
HEADERS += $$AGGREGATION_PATH/aggregate.h \
$$AGGREGATION_PATH/aggregation_global.h
INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/aggregation
include($$IDE_SOURCE_TREE/src/libs/aggregation/aggregation.pri)
SOURCES += tst_aggregate.cpp
include(../qttest.pri)
# Defines import symbol as empty
DEFINES+=QTCREATOR_UTILS_STATIC_LIB
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
UTILSDIR = ../../../src/libs
SOURCES += \
tst_changeset.cpp \
$$UTILSDIR/utils/changeset.cpp
HEADERS += \
$$UTILSDIR/utils/changeset.h
INCLUDEPATH += $$UTILSDIR
SOURCES += tst_changeset.cpp
include(../../qttest.pri)
include(../shared/shared.pri)
SRCDIR = ../../../../src
SOURCES += tst_codeformatter.cpp
INCLUDEPATH += $$SRCDIR/plugins $$SRCDIR/libs
INCLUDEPATH += $$IDE_SOURCE_TREE/src/plugins $$IDE_SOURCE_TREE/src/libs
include(../qttest.pri)
DEBUGGERDIR = ../../../src/plugins/debugger
UTILSDIR = ../../../src/libs
MACROSDIR = ../../../share/qtcreator/gdbmacros
DEBUGGERDIR = $$IDE_SOURCE_TREE/src/plugins/debugger
UTILSDIR = $$IDE_SOURCE_TREE/src/libs
MACROSDIR = $$IDE_SOURCE_TREE/share/qtcreator/gdbmacros
SOURCES += \
$$DEBUGGERDIR/gdb/gdbmi.cpp \
......@@ -11,6 +11,7 @@ SOURCES += \
tst_dumpers.cpp \
DEFINES += MACROSDEBUG
win32:DEFINES += _CRT_SECURE_NO_WARNINGS
DEFINES -= QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
......
include(../qttest.pri)
UTILSDIR = ../../../src/libs
UTILSDIR = $$IDE_SOURCE_TREE/src/libs
DEBUGGERDIR = ../../../src/plugins/debugger
DEBUGGERDIR = $$IDE_SOURCE_TREE/src/plugins/debugger
INCLUDEPATH += $$DEBUGGERDIR $$UTILSDIR
......
include(../qttest.pri)
DEBUGGERDIR = ../../../src/plugins/debugger
UTILSDIR = ../../../src/libs
MACROSDIR = ../../../share/qtcreator/gdbmacros
DEBUGGERDIR = $$IDE_SOURCE_TREE/src/plugins/debugger
UTILSDIR = $$IDE_SOURCE_TREE/src/libs
MACROSDIR = $$IDE_SOURCE_TREE/share/qtcreator/gdbmacros
SOURCES += \
tst_plugin.cpp \
......
......@@ -84,6 +84,7 @@ void tst_Plugin::readStandardError()
void tst_Plugin::runQtc()
{
QString test = QFileInfo(qApp->arguments().at(0)).absoluteFilePath();
// FIXME: this is utterly broken...
QString qtc = QFileInfo(test).absolutePath() + "/../../../bin/qtcreator.bin";
qtc = QFileInfo(qtc).absoluteFilePath();
QStringList env = QProcess::systemEnvironment();
......
include(../qttest.pri)
UTILSDIR = ../../../src/libs
DEBUGGERDIR = ../../../src/plugins/debugger
UTILSDIR = $$IDE_SOURCE_TREE/src/libs
DEBUGGERDIR = $$IDE_SOURCE_TREE/src/plugins/debugger
INCLUDEPATH += $$DEBUGGERDIR $$UTILSDIR
......
CONFIG += qtestlib testcase
TEMPLATE = app
CONFIG -= app_bundle
DEFINES += QTCREATOR_UTILS_LIB
include(../qttest.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
UTILS_PATH = ../../../src/libs/utils
INCLUDEPATH += $$UTILS_PATH/..
SOURCES += \
tst_environment.cpp \
$$UTILS_PATH/environment.cpp
HEADERS += \
$$UTILS_PATH/environment.h \
$$UTILS_PATH/utils_global.h
TARGET = tst_$$TARGET
SOURCES += tst_environment.cpp
include(../qttest.pri)
# Defines import symbol as empty
DEFINES+=QTCREATOR_UTILS_STATIC_LIB
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
include(../../../src/libs/utils/utils.pri)
FAKEVIMDIR = ../../../src/plugins/fakevim
UTILSDIR = ../../../src/libs
FAKEVIMDIR = $$IDE_SOURCE_TREE/src/plugins/fakevim
UTILSDIR = $$IDE_SOURCE_TREE/src/libs
SOURCES += \
$$FAKEVIMDIR/fakevimhandler.cpp \
......
CONFIG += qtestlib testcase
TEMPLATE = app
CONFIG -= app_bundle
DEFINES += QTCREATOR_UTILS_LIB
include(../qttest.pri)
include(../../../qtcreator.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
UTILS_PATH = $$IDE_SOURCE_TREE/src/libs/utils
INCLUDEPATH += $$UTILS_PATH
INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/utils
# Input
SOURCES += tst_filesearch.cpp \
$$UTILS_PATH/filesearch.cpp
HEADERS += $$UTILS_PATH/filesearch.h \
$$UTILS_PATH/utils_global.h
TARGET=tst_$$TARGET
SOURCES += tst_filesearch.cpp
OTHER_FILES += testfile.txt
RESOURCES += \
tst_filesearch.qrc
RESOURCES += tst_filesearch.qrc
include(../../qttest.pri)
QT += gui
PLUGINSDIR = ../../../../src/plugins
PLUGINSDIR = $$IDE_SOURCE_TREE/src/plugins
GENERICHIGHLIGHTERDIR = $$PLUGINSDIR/texteditor/generichighlighter
SOURCES += \
......
include(../../qttest.pri)
PLUGINSDIR = ../../../../src/plugins
PLUGINSDIR = $$IDE_SOURCE_TREE/src/plugins
GENERICHIGHLIGHTERDIR = $$PLUGINSDIR/texteditor/generichighlighter
SOURCES += tst_specificrules.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/context.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/dynamicrule.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/rule.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/specificrules.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/progressdata.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/highlightdefinition.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/keywordlist.cpp \
$$PLUGINSDIR/texteditor/generichighlighter/itemdata.cpp
$$GENERICHIGHLIGHTERDIR/context.cpp \
$$GENERICHIGHLIGHTERDIR/dynamicrule.cpp \
$$GENERICHIGHLIGHTERDIR/rule.cpp \
$$GENERICHIGHLIGHTERDIR/specificrules.cpp \
$$GENERICHIGHLIGHTERDIR/progressdata.cpp \
$$GENERICHIGHLIGHTERDIR/highlightdefinition.cpp \
$$GENERICHIGHLIGHTERDIR/keywordlist.cpp \
$$GENERICHIGHLIGHTERDIR/itemdata.cpp
INCLUDEPATH += $$PLUGINSDIR
CONFIG += qtestlib testcase
TEMPLATE = app
CONFIG -= app_bundle
include(../qttest.pri)
UTILS_PATH = ../../../src/shared/proparser
INCLUDEPATH += $$UTILS_PATH
DEPENDPATH += $$UTILS_PATH
SOURCES += \
tst_ioutils.cpp
TARGET = tst_$$TARGET
INCLUDEPATH += $$IDE_SOURCE_TREE/src/shared
SOURCES += tst_ioutils.cpp \
$$IDE_SOURCE_TREE/src/shared/proparser/ioutils.cpp
......@@ -31,9 +31,9 @@
**
**************************************************************************/
#include "../../../src/shared/proparser/ioutils.cpp"
#include <QtTest/QtTest>
#include <proparser/ioutils.h>
class tst_IoUtils : public QObject
{
......@@ -79,7 +79,7 @@ void tst_IoUtils::quoteArg()
QFETCH(QString, in);
QFETCH(QString, out);
QCOMPARE(IoUtils::shellQuote(in), out);
QCOMPARE(ProFileEvaluatorInternal::IoUtils::shellQuote(in), out);
}
QTEST_MAIN(tst_IoUtils)
......
CONFIG += qtestlib testcase
TEMPLATE = app
CONFIG -= app_bundle
DEFINES += QTCREATOR_UTILS_LIB
include(../qttest.pri)
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
win32:DEFINES += _CRT_SECURE_NO_WARNINGS
UTILS_PATH = ../../../src/libs/utils
SOURCES += tst_qtcprocess.cpp
INCLUDEPATH += $$UTILS_PATH/..
DEPENDPATH += $$UTILS_PATH/..
SOURCES += \
tst_qtcprocess.cpp \
$$UTILS_PATH/qtcprocess.cpp \
$$UTILS_PATH/stringutils.cpp \
$$UTILS_PATH/environment.cpp
HEADERS += \
$$UTILS_PATH/qtcprocess.h \
$$UTILS_PATH/environment.h \
$$UTILS_PATH/stringutils.h \
$$UTILS_PATH/utils_global.h
TARGET = tst_$$TARGET
DEFINES -= QT_USE_FAST_CONCATENATION QT_USE_FAST_OPERATOR_PLUS
DEFINES -= QT_NO_CAST_TO_ASCII QT_NO_CAST_FROM_ASCII
include(../qttest.pri)
DEFINES += QTCREATOR_UTILS_LIB
UTILS_PATH = ../../../src/libs/utils
include($$IDE_SOURCE_TREE/src/libs/utils/utils.pri)
DEFINES -= QT_USE_FAST_OPERATOR_PLUS QT_USE_FAST_CONCATENATION
INCLUDEPATH += $$UTILS_PATH
# Input
INCLUDEPATH += $$IDE_SOURCE_TREE/src/libs/utils
SOURCES += tst_stringutils.cpp \
$$UTILS_PATH/stringutils.cpp
HEADERS += $$UTILS_PATH/stringutils.h \
$$UTILS_PATH/utils_global.h
# $$UTILS_PATH/stringutils.cpp
#HEADERS += $$UTILS_PATH/stringutils.h \
# $$UTILS_PATH/utils_global.h
include(../../../../qtcreator.pri)
TEMPLATE = app
SOURCES += ../../../../share/qtcreator/gdbmacros/gdbmacros.cpp
win32:DEFINES += _CRT_SECURE_NO_WARNINGS
SOURCES += $$IDE_SOURCE_TREE/share/qtcreator/gdbmacros/gdbmacros.cpp
SOURCES += main.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