aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/unittest/unittest.pro
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/unittest/unittest.pro')
-rw-r--r--tests/unit/unittest/unittest.pro58
1 files changed, 39 insertions, 19 deletions
diff --git a/tests/unit/unittest/unittest.pro b/tests/unit/unittest/unittest.pro
index 1db48813e8..3917237d0b 100644
--- a/tests/unit/unittest/unittest.pro
+++ b/tests/unit/unittest/unittest.pro
@@ -1,9 +1,12 @@
INCLUDEPATH += ../mockup
+INCLUDEPATH += ../mockup/qmldesigner/designercore/include
QT += core network testlib widgets
-CONFIG += console c++14 testcase object_parallel_to_source
+CONFIG += console c++14 testcase
CONFIG -= app_bundle shared
+QTC_UNITTEST_BUILD_CPP_PARSER = $$(QTC_UNITTEST_BUILD_CPP_PARSER)
+
include(gmock_dependency.pri)
include(clang_dependency.pri)
include(creator_dependency.pri)
@@ -11,8 +14,6 @@ include(benchmark_dependency.pri)
requires(isEmpty(QTC_CLANG_BUILDMODE_MISMATCH))
-OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
-
!msvc:force_debug_info:QMAKE_CXXFLAGS += -fno-omit-frame-pointer
DEFINES += \
@@ -38,8 +39,11 @@ CONFIG(release, debug|release):QMAKE_LFLAGS += -Wl,--strip-debug
}
gcc:!clang: QMAKE_CXXFLAGS += -Wno-noexcept-type
-msvc: QMAKE_CXXFLAGS += /bigobj /wd4267 /wd4141 /wd4146
+msvc{
+QMAKE_CXXFLAGS += /bigobj /wd4267 /wd4141 /wd4146 /wd4624
+QMAKE_LFLAGS += /INCREMENTAL
+}
# create fake CppTools.json for the mime type definitions
dependencyList = "\"Dependencies\" : []"
cpptoolsjson.input = $$PWD/../../../src/plugins/cpptools/CppTools.json.in
@@ -63,9 +67,10 @@ SOURCES += \
filepathview-test.cpp \
gtest-creator-printing.cpp \
gtest-qt-printing.cpp \
+ lastchangedrowid-test.cpp \
lineprefixer-test.cpp \
+ listmodeleditor-test.cpp \
locatorfilter-test.cpp \
- matchingtext-test.cpp \
mimedatabase-utilities.cpp \
pchmanagerclientserverinprocess-test.cpp \
pchmanagerclient-test.cpp \
@@ -80,6 +85,8 @@ SOURCES += \
smallstring-test.cpp \
sourcerangefilter-test.cpp \
spydummy.cpp \
+ sqlitesessions-test.cpp \
+ sqlitevalue-test.cpp \
symbolindexer-test.cpp \
symbolsfindfilter-test.cpp \
stringcache-test.cpp \
@@ -122,18 +129,23 @@ SOURCES += \
headerpathfilter-test.cpp \
toolchainargumentscache-test.cpp \
modifiedtimechecker-test.cpp \
- readexporteddiagnostics-test.cpp
+ sqlitecolumn-test.cpp \
+ sqlitedatabasebackend-test.cpp \
+ sqlitedatabase-test.cpp \
+ sqlitestatement-test.cpp \
+ sqlitetable-test.cpp \
+ sqlstatementbuilder-test.cpp \
+ createtablesqlstatementbuilder-test.cpp
+
+!isEmpty(QTC_UNITTEST_BUILD_CPP_PARSER):SOURCES += matchingtext-test.cpp
!isEmpty(LIBCLANG_LIBS) {
SOURCES += \
- activationsequencecontextprocessor-test.cpp \
- activationsequenceprocessor-test.cpp \
chunksreportedmonitor.cpp \
clangasyncjob-base.cpp \
clangcodecompleteresults-test.cpp \
clangcodemodelserver-test.cpp \
clangcompletecodejob-test.cpp \
- clangcompletioncontextanalyzer-test.cpp \
clangdiagnosticfilter-test.cpp \
clangdocumentprocessors-test.cpp \
clangdocumentprocessor-test.cpp \
@@ -158,7 +170,6 @@ SOURCES += \
codecompleter-test.cpp \
codecompletionsextractor-test.cpp \
completionchunkstotextconverter-test.cpp \
- createtablesqlstatementbuilder-test.cpp \
cursor-test.cpp \
diagnosticset-test.cpp \
diagnostic-test.cpp \
@@ -168,17 +179,18 @@ SOURCES += \
skippedsourceranges-test.cpp \
sourcelocation-test.cpp \
sourcerange-test.cpp \
- sqlitecolumn-test.cpp \
- sqlitedatabasebackend-test.cpp \
- sqlitedatabase-test.cpp \
- sqlitestatement-test.cpp \
- sqlitetable-test.cpp \
- sqlstatementbuilder-test.cpp \
token-test.cpp \
translationunitupdater-test.cpp \
unsavedfiles-test.cpp \
unsavedfile-test.cpp \
- utf8positionfromlinecolumn-test.cpp
+ utf8positionfromlinecolumn-test.cpp \
+ readexporteddiagnostics-test.cpp
+
+!isEmpty(QTC_UNITTEST_BUILD_CPP_PARSER):SOURCE += \
+ clangcompletioncontextanalyzer-test.cpp \
+ activationsequencecontextprocessor-test.cpp \
+ activationsequenceprocessor-test.cpp
+
}
!isEmpty(LIBTOOLING_LIBS) {
@@ -194,7 +206,6 @@ SOURCES += \
refactoringclientserverinprocess-test.cpp \
refactoringclient-test.cpp \
refactoringcompilationdatabase-test.cpp \
- refactoringengine-test.cpp \
refactoringserver-test.cpp \
sourcerangeextractor-test.cpp \
symbolindexing-test.cpp \
@@ -203,6 +214,9 @@ SOURCES += \
usedmacrocollector-test.cpp \
builddependencycollector-test.cpp \
tokenprocessor-test.cpp
+
+!isEmpty(QTC_UNITTEST_BUILD_CPP_PARSER):SOURCES += refactoringengine-test.cpp
+
}
!isEmpty(CLANGFORMAT_LIBS) {
@@ -226,12 +240,14 @@ HEADERS += \
gtest-creator-printing.h \
gtest-llvm-printing.h \
gtest-qt-printing.h \
+ gtest-std-printing.h \
mimedatabase-utilities.h \
mockclangcodemodelclient.h \
mockclangcodemodelserver.h \
mockclangpathwatcher.h \
mockclangpathwatchernotifier.h \
mockfilesystem.h \
+ mocklistmodeleditorview.h \
mockpchcreator.h \
mockpchmanagerclient.h \
mockpchmanagernotifier.h \
@@ -283,7 +299,11 @@ HEADERS += \
mockbuilddependencygenerator.h \
mockpchtasksmerger.h \
mockpchtaskqueue.h \
- mockpchtaskgenerator.h
+ mockpchtaskgenerator.h \
+ ../mockup/qmldesigner/designercore/include/nodeinstanceview.h \
+ ../mockup/qmldesigner/designercore/include/rewriterview.h \
+ ../mockup/qmldesigner/designercore/include/itemlibraryitem.h
+
!isEmpty(LIBCLANG_LIBS) {
HEADERS += \