Skip to content
Snippets Groups Projects
Commit c705cfca authored by Nikolai Kosjar's avatar Nikolai Kosjar
Browse files

ClangStaticAnalyzer: Move non-plugin tests into tests/auto


Change-Id: I014ef6fd125393b69ec242219c0833efde0c216b
Reviewed-by: default avatarChristian Kandeler <christian.kandeler@theqtcompany.com>
parent 161bb4e4
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 25 deletions
QTC_LIB_DEPENDS += utils
QTC_PLUGIN_DEPENDS += analyzerbase
isEmpty(IDE_SOURCE_TREE): IDE_SOURCE_TREE=$$(QTC_SOURCE)
isEmpty(IDE_BUILD_TREE): IDE_BUILD_TREE=$$(QTC_BUILD)
isEmpty(IDE_SOURCE_TREE): error(Set QTC_SOURCE environment variable)
isEmpty(IDE_BUILD_TREE): error(Set QTC_BUILD environment variable)
PLUGINDIR = $$PWD/..
INCLUDEPATH += $$PLUGINDIR/..
include($$IDE_SOURCE_TREE/qtcreator.pri)
include($$IDE_SOURCE_TREE/tests/auto/qttestrpath.pri)
QT += testlib
QT -= gui
CONFIG += console
CONFIG += testcase
CONFIG -= app_bundle
TEMPLATE = app
...@@ -3,6 +3,7 @@ TEMPLATE = subdirs ...@@ -3,6 +3,7 @@ TEMPLATE = subdirs
SUBDIRS += \ SUBDIRS += \
aggregation \ aggregation \
changeset \ changeset \
clangstaticanalyzer \
cplusplus \ cplusplus \
debugger \ debugger \
diff \ diff \
......
...@@ -6,6 +6,7 @@ Project { ...@@ -6,6 +6,7 @@ Project {
references: [ references: [
"aggregation/aggregation.qbs", "aggregation/aggregation.qbs",
"changeset/changeset.qbs", "changeset/changeset.qbs",
"clangstaticanalyzer/clangstaticanalyzer.qbs",
"cplusplus/cplusplus.qbs", "cplusplus/cplusplus.qbs",
"debugger/debugger.qbs", "debugger/debugger.qbs",
"diff/diff.qbs", "diff/diff.qbs",
......
import qbs import qbs
Project { Project {
name: "ClangStaticAnalyzer autotests"
references: [ references: [
"clangstaticanalyzerlogfilereader", "clangstaticanalyzerlogfilereader",
"clangstaticanalyzerrunner", "clangstaticanalyzerrunner",
......
...@@ -5,7 +5,7 @@ QtcAutotest { ...@@ -5,7 +5,7 @@ QtcAutotest {
Depends { name: "AnalyzerBase" } Depends { name: "AnalyzerBase" }
Depends { name: "Utils" } Depends { name: "Utils" }
property path pluginDir: "../../" property path pluginDir: project.ide_source_tree + "/src/plugins/clangstaticanalyzer"
cpp.defines: base.concat('SRCDIR="' + sourceDirectory + '"') cpp.defines: base.concat('SRCDIR="' + sourceDirectory + '"')
cpp.includePaths: base.concat(pluginDir + "/..") cpp.includePaths: base.concat(pluginDir + "/..")
} }
include(../tests.pri) include(../clangstaticanalyzertest.pri)
TARGET = tst_clangstaticanalyzerlogfilereader TARGET = tst_clangstaticanalyzerlogfilereader
......
include(../tests.pri) include(../clangstaticanalyzertest.pri)
TARGET = tst_clangstaticanalyzerrunnertest TARGET = tst_clangstaticanalyzerrunnertest
......
QTC_LIB_DEPENDS += utils
QTC_PLUGIN_DEPENDS += analyzerbase
include(../qttest.pri)
PLUGINDIR=$$IDE_SOURCE_TREE/src/plugins/clangstaticanalyzer
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment