2015-07-23 13:01:02 +02:00
|
|
|
INCLUDEPATH += ../mockup
|
2015-06-01 18:51:55 +02:00
|
|
|
|
2017-01-30 14:38:18 +01:00
|
|
|
QT += core network testlib widgets
|
|
|
|
CONFIG += console c++14 testcase object_parallel_to_source
|
|
|
|
CONFIG -= app_bundle shared
|
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
include(gmock_dependency.pri)
|
|
|
|
include(clang_dependency.pri)
|
|
|
|
include(creator_dependency.pri)
|
2016-02-16 16:04:54 +01:00
|
|
|
include(benchmark_dependency.pri)
|
2015-07-08 14:07:13 +02:00
|
|
|
|
2016-02-16 16:04:54 +01:00
|
|
|
OBJECTS_DIR = $$OUT_PWD/obj # workaround for qmake bug in object_parallel_to_source
|
|
|
|
|
2017-03-03 20:24:46 +01:00
|
|
|
!msvc:force_debug_info:QMAKE_CXXFLAGS += -fno-omit-frame-pointer
|
2016-02-17 11:40:56 +01:00
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
DEFINES += \
|
2016-05-14 22:06:00 +03:00
|
|
|
QT_RESTRICTED_CAST_FROM_ASCII \
|
2016-02-17 11:41:23 +01:00
|
|
|
UNIT_TESTS \
|
2015-08-19 12:36:43 +02:00
|
|
|
DONT_CHECK_MESSAGE_COUNTER \
|
2015-07-22 16:56:17 +02:00
|
|
|
TESTDATA_DIR=\"R\\\"xxx($$PWD/data)xxx\\\"\"
|
2016-04-26 11:09:44 +02:00
|
|
|
msvc: QMAKE_CXXFLAGS_WARN_ON -= -w34100 # 'unreferenced formal parameter' in MATCHER_* functions
|
2015-07-22 16:56:17 +02:00
|
|
|
win32:DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echo)xxx\\\"\"
|
|
|
|
unix: DEFINES += ECHOSERVER=\"R\\\"xxx($$OUT_PWD/../echoserver/echo)xxx\\\"\"
|
|
|
|
|
2017-02-08 20:08:21 +01:00
|
|
|
linux {
|
|
|
|
QMAKE_LFLAGS_RELEASE = #disable optimization
|
|
|
|
QMAKE_LFLAGS += -fno-merge-debug-strings -fuse-ld=gold
|
|
|
|
CONFIG(release, debug|release):QMAKE_LFLAGS += -Wl,--strip-debug
|
|
|
|
}
|
|
|
|
|
2017-02-08 14:31:55 +01:00
|
|
|
# create fake CppTools.json for the mime type definitions
|
|
|
|
dependencyList = "\"Dependencies\" : []"
|
|
|
|
cpptoolsjson.input = $$PWD/../../../src/plugins/cpptools/CppTools.json.in
|
|
|
|
cpptoolsjson.output = $$OUT_PWD/CppTools.json
|
|
|
|
QMAKE_SUBSTITUTES += cpptoolsjson
|
|
|
|
DEFINES += CPPTOOLS_JSON=\"R\\\"xxx($${cpptoolsjson.output})xxx\\\"\"
|
|
|
|
|
2016-08-17 14:18:55 +02:00
|
|
|
SOURCES += \
|
2017-07-24 17:10:29 +02:00
|
|
|
changedfilepathcompressor-test.cpp \
|
|
|
|
clangpathwatcher-test.cpp \
|
|
|
|
clangqueryexamplehighlightmarker-test.cpp \
|
|
|
|
clangqueryhighlightmarker-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clientserverinprocess-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
clientserveroutsideprocess-test.cpp \
|
2016-11-29 17:32:34 +01:00
|
|
|
cppprojectfilecategorizer-test.cpp \
|
2017-02-06 16:59:53 +01:00
|
|
|
cppprojectinfogenerator-test.cpp \
|
2016-12-16 13:10:43 +01:00
|
|
|
cppprojectpartchooser-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
fakeprocess.cpp \
|
|
|
|
faketimer.cpp \
|
|
|
|
filepath-test.cpp \
|
|
|
|
gtest-creator-printing.cpp \
|
|
|
|
gtest-qt-printing.cpp \
|
|
|
|
lineprefixer-test.cpp \
|
|
|
|
matchingtext-test.cpp \
|
2016-12-05 15:24:09 +01:00
|
|
|
mimedatabase-utilities.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
pchgenerator-test.cpp \
|
|
|
|
pchmanagerclientserverinprocess-test.cpp \
|
|
|
|
pchmanagerclient-test.cpp \
|
|
|
|
pchmanagerserver-test.cpp \
|
|
|
|
processevents-utilities.cpp \
|
|
|
|
projectparts-test.cpp \
|
|
|
|
projectupdater-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
readandwritemessageblock-test.cpp \
|
|
|
|
sizedarray-test.cpp \
|
|
|
|
smallstring-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
sourcerangefilter-test.cpp \
|
2016-08-17 14:18:55 +02:00
|
|
|
spydummy.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
stringcache-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
unittests-main.cpp \
|
2016-11-23 13:13:38 +01:00
|
|
|
utf8-test.cpp \
|
2016-08-17 14:18:55 +02:00
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBCLANG_LIBS) {
|
2015-07-22 16:56:17 +02:00
|
|
|
SOURCES += \
|
2016-09-15 17:41:41 +02:00
|
|
|
activationsequencecontextprocessor-test.cpp \
|
|
|
|
activationsequenceprocessor-test.cpp \
|
2016-01-11 15:20:04 +01:00
|
|
|
chunksreportedmonitor.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangasyncjob-base.cpp \
|
|
|
|
clangcodecompleteresults-test.cpp \
|
2017-06-14 16:48:07 +02:00
|
|
|
clangcodemodelserver-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangcompletecodejob-test.cpp \
|
|
|
|
clangcompletioncontextanalyzer-test.cpp \
|
|
|
|
clangcreateinitialdocumentpreamblejob-test.cpp \
|
|
|
|
clangdiagnosticfilter-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
clangdocumentprocessors-test.cpp \
|
|
|
|
clangdocumentprocessor-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangdocuments-test.cpp \
|
2017-07-28 15:15:46 +02:00
|
|
|
clangdocumentsuspenderresumer-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangdocument-test.cpp \
|
|
|
|
clangfixitoperation-test.cpp \
|
|
|
|
clangisdiagnosticrelatedtolocation-test.cpp \
|
|
|
|
clangjobqueue-test.cpp \
|
|
|
|
clangjobs-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
clangparsesupportivetranslationunitjob-test.cpp \
|
|
|
|
clangreferencescollector-test.cpp \
|
|
|
|
clangreparsesupportivetranslationunitjob-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangrequestdocumentannotationsjob-test.cpp \
|
2017-06-09 12:19:09 +02:00
|
|
|
clangrequestreferencesjob-test.cpp \
|
2017-07-28 15:15:46 +02:00
|
|
|
clangresumedocumentjob-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangstring-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
clangsupportivetranslationunitinitializer-test.cpp \
|
2017-07-28 15:15:46 +02:00
|
|
|
clangsuspenddocumentjob-test.cpp \
|
2016-09-13 10:41:22 +02:00
|
|
|
clangtranslationunits-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
clangtranslationunit-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangupdatedocumentannotationsjob-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
codecompleter-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
codecompletionsextractor-test.cpp \
|
|
|
|
completionchunkstotextconverter-test.cpp \
|
|
|
|
createtablesqlstatementbuilder-test.cpp \
|
|
|
|
cursor-test.cpp \
|
|
|
|
diagnosticset-test.cpp \
|
|
|
|
diagnostic-test.cpp \
|
|
|
|
fixit-test.cpp \
|
|
|
|
highlightingmarksreporter-test.cpp \
|
|
|
|
highlightingmarks-test.cpp \
|
|
|
|
projectpart-test.cpp \
|
|
|
|
senddocumenttracker-test.cpp \
|
|
|
|
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 \
|
|
|
|
translationunitupdater-test.cpp \
|
|
|
|
unsavedfiles-test.cpp \
|
|
|
|
unsavedfile-test.cpp \
|
2017-02-02 18:02:53 +01:00
|
|
|
utf8positionfromlinecolumn-test.cpp \
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBTOOLING_LIBS) {
|
2016-08-17 14:18:55 +02:00
|
|
|
SOURCES += \
|
2017-06-29 10:37:51 +02:00
|
|
|
clangquerygatherer-test.cpp \
|
2016-11-15 15:38:12 +01:00
|
|
|
clangqueryprojectfindfilter-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
clangquery-test.cpp \
|
|
|
|
gtest-clang-printing.cpp \
|
|
|
|
includecollector-test.cpp \
|
|
|
|
pchcreator-test.cpp \
|
2016-09-15 17:41:41 +02:00
|
|
|
refactoringclientserverinprocess-test.cpp \
|
|
|
|
refactoringclient-test.cpp \
|
|
|
|
refactoringcompilationdatabase-test.cpp \
|
|
|
|
refactoringengine-test.cpp \
|
|
|
|
refactoringserver-test.cpp \
|
2016-11-23 13:13:38 +01:00
|
|
|
sourcerangeextractor-test.cpp \
|
2017-07-24 17:10:29 +02:00
|
|
|
symbolfinder-test.cpp \
|
2017-01-30 11:24:46 +01:00
|
|
|
testclangtool.cpp \
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
2016-02-17 16:05:41 +01:00
|
|
|
|
|
|
|
exists($$GOOGLEBENCHMARK_DIR) {
|
|
|
|
SOURCES += \
|
2016-09-15 17:41:41 +02:00
|
|
|
smallstring-benchmark.cpp
|
2016-02-17 16:05:41 +01:00
|
|
|
}
|
2015-06-01 18:51:55 +02:00
|
|
|
|
|
|
|
HEADERS += \
|
2017-07-24 17:10:29 +02:00
|
|
|
compare-operators.h \
|
|
|
|
conditionally-disabled-tests.h \
|
|
|
|
dummyclangipcclient.h \
|
|
|
|
dynamicastmatcherdiagnosticcontainer-matcher.h \
|
|
|
|
fakeprocess.h \
|
|
|
|
faketimer.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
filesystem-utilities.h \
|
|
|
|
googletest.h \
|
2017-07-24 17:10:29 +02:00
|
|
|
gtest-creator-printing.h \
|
2015-06-01 18:51:55 +02:00
|
|
|
gtest-qt-printing.h \
|
2016-12-05 15:24:09 +01:00
|
|
|
mimedatabase-utilities.h \
|
2017-07-24 17:10:29 +02:00
|
|
|
mockchangedfilepathcompressor.h \
|
|
|
|
mockclangcodemodelclient.h \
|
|
|
|
mockclangcodemodelserver.h \
|
2017-01-30 11:24:46 +01:00
|
|
|
mockclangpathwatcher.h \
|
2017-01-31 11:14:54 +01:00
|
|
|
mockclangpathwatchernotifier.h \
|
2017-07-24 17:10:29 +02:00
|
|
|
mockpchcreator.h \
|
2017-01-31 14:21:05 +01:00
|
|
|
mockpchgeneratornotifier.h \
|
2017-02-02 18:02:53 +01:00
|
|
|
mockpchmanagerclient.h \
|
|
|
|
mockpchmanagernotifier.h \
|
2017-07-24 17:10:29 +02:00
|
|
|
mockpchmanagerserver.h \
|
|
|
|
mockprojectparts.h \
|
|
|
|
mockqfilesystemwatcher.h \
|
|
|
|
mocksearch.h \
|
|
|
|
mocksearchhandle.h \
|
|
|
|
mocksearchresult.h \
|
|
|
|
mocksyntaxhighligher.h \
|
|
|
|
processevents-utilities.h \
|
|
|
|
sourcerangecontainer-matcher.h \
|
|
|
|
spydummy.h \
|
|
|
|
testenvironment.h \
|
2016-08-17 14:18:55 +02:00
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBCLANG_LIBS) {
|
2016-08-17 14:18:55 +02:00
|
|
|
HEADERS += \
|
|
|
|
chunksreportedmonitor.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
clangasyncjob-base.h \
|
2017-07-24 17:10:29 +02:00
|
|
|
clangcompareoperators.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
diagnosticcontainer-matcher.h \
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
|
|
|
|
2016-08-31 15:15:48 +02:00
|
|
|
!isEmpty(LIBTOOLING_LIBS) {
|
2016-08-17 14:18:55 +02:00
|
|
|
HEADERS += \
|
2017-07-24 17:10:29 +02:00
|
|
|
gtest-clang-printing.h \
|
2016-09-15 17:41:41 +02:00
|
|
|
mockrefactoringclientcallback.h \
|
|
|
|
mockrefactoringclient.h \
|
2016-11-23 13:13:38 +01:00
|
|
|
mockrefactoringserver.h \
|
2017-07-24 17:10:29 +02:00
|
|
|
testclangtool.h \
|
2016-08-17 14:18:55 +02:00
|
|
|
}
|
2015-06-01 18:51:55 +02:00
|
|
|
|
2015-07-22 16:56:17 +02:00
|
|
|
OTHER_FILES += $$files(data/*)
|