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
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
SUBDIRS += \
aggregation \
changeset \
clangstaticanalyzer \
cplusplus \
debugger \
diff \
......
......@@ -6,6 +6,7 @@ Project {
references: [
"aggregation/aggregation.qbs",
"changeset/changeset.qbs",
"clangstaticanalyzer/clangstaticanalyzer.qbs",
"cplusplus/cplusplus.qbs",
"debugger/debugger.qbs",
"diff/diff.qbs",
......
import qbs
Project {
name: "ClangStaticAnalyzer autotests"
references: [
"clangstaticanalyzerlogfilereader",
"clangstaticanalyzerrunner",
......
......@@ -5,7 +5,7 @@ QtcAutotest {
Depends { name: "AnalyzerBase" }
Depends { name: "Utils" }
property path pluginDir: "../../"
property path pluginDir: project.ide_source_tree + "/src/plugins/clangstaticanalyzer"
cpp.defines: base.concat('SRCDIR="' + sourceDirectory + '"')
cpp.includePaths: base.concat(pluginDir + "/..")
}
QTC_LIB_DEPENDS += utils
QTC_PLUGIN_DEPENDS += analyzerbase
include(../qttest.pri)
PLUGINDIR=$$IDE_SOURCE_TREE/src/plugins/clangstaticanalyzer
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