forked from qt-creator/qt-creator
Qbs build system: Add a component for test files groups
Mainly in order to enforce a unified group name across QtC libraries and plugins. Change-Id: I6eafe0f9d227ec73d8c9029675866c67063768fb Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
6
qbs/imports/QtcTestFiles.qbs
Normal file
6
qbs/imports/QtcTestFiles.qbs
Normal file
@@ -0,0 +1,6 @@
|
||||
import qbs 1.0
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
}
|
||||
@@ -116,9 +116,7 @@ Project {
|
||||
"sdkmanageroutputparser.h"
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"android_tst.qrc",
|
||||
"androidsdkmanager_test.cpp",
|
||||
|
||||
@@ -125,9 +125,7 @@ QtcPlugin {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Test sources"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"autotestunittests.cpp",
|
||||
"autotestunittests.h",
|
||||
|
||||
@@ -94,9 +94,7 @@ QtcPlugin {
|
||||
}
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
prefix: "test/"
|
||||
files: [
|
||||
"activationsequenceprocessortest.cpp",
|
||||
|
||||
@@ -54,10 +54,8 @@ QtcPlugin {
|
||||
"clangformatutils.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
QtcTestFiles {
|
||||
prefix: "tests/"
|
||||
condition: qtc.testsEnabled
|
||||
cpp.defines: outer.concat('TESTDATA_DIR="' + sourceDirectory + "/tests/data" + '"')
|
||||
files: [
|
||||
"clangformat-test.cpp",
|
||||
|
||||
@@ -74,9 +74,7 @@ QtcPlugin {
|
||||
"virtualfilesystemoverlay.h",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"clangtoolspreconfiguredsessiontests.cpp",
|
||||
"clangtoolspreconfiguredsessiontests.h",
|
||||
|
||||
@@ -21,9 +21,7 @@ QtcPlugin {
|
||||
"compilationdbparser.h",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"compilationdatabasetests.cpp",
|
||||
"compilationdatabasetests.h",
|
||||
|
||||
@@ -271,9 +271,7 @@ Project {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"testdatadir.cpp",
|
||||
"testdatadir.h",
|
||||
|
||||
@@ -245,9 +245,7 @@ QtcPlugin {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
|
||||
files: [
|
||||
"compileroptionsbuilder_test.cpp",
|
||||
|
||||
@@ -239,9 +239,7 @@ Project {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"debuggerunittests.qrc",
|
||||
]
|
||||
|
||||
@@ -77,9 +77,7 @@ QtcPlugin {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [ "gotoslot_test.cpp" ]
|
||||
|
||||
cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
|
||||
|
||||
@@ -25,9 +25,7 @@ QtcPlugin {
|
||||
"fakevimtr.h",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: ["fakevim_test.cpp"]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,8 +58,7 @@ QtcPlugin {
|
||||
"settingshandler.cpp",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "McuSupport test files"
|
||||
QtcTestFiles {
|
||||
condition: qtc.testsEnabled && (qtc_gtest_gmock.hasRepo || qtc_gtest_gmock.externalLibsPresent)
|
||||
prefix: "test/"
|
||||
files: [
|
||||
|
||||
@@ -75,9 +75,7 @@ QtcPlugin {
|
||||
files: [ "PerfProfilerFlameGraphView.qml" ]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
prefix: "tests/"
|
||||
files: [
|
||||
"perfprofilertracefile_test.cpp",
|
||||
|
||||
@@ -250,9 +250,7 @@ Project {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: ["outputparser_test.h", "outputparser_test.cpp"]
|
||||
}
|
||||
|
||||
|
||||
@@ -54,9 +54,7 @@ QtcPlugin {
|
||||
"qmljstools.qrc"
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: ["qmljstools_test.cpp"]
|
||||
}
|
||||
|
||||
|
||||
@@ -38,9 +38,7 @@ QtcPlugin {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
prefix: "tests/"
|
||||
files: [
|
||||
"qmlpreviewclient_test.cpp",
|
||||
|
||||
@@ -73,9 +73,7 @@ QtcPlugin {
|
||||
files: "qml/**"
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
prefix: "tests/"
|
||||
files: [
|
||||
"debugmessagesmodel_test.cpp", "debugmessagesmodel_test.h",
|
||||
|
||||
@@ -67,9 +67,7 @@ Project {
|
||||
"images/embeddedtarget.png",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"filesystemaccess_test.cpp",
|
||||
"filesystemaccess_test.h",
|
||||
|
||||
@@ -13,9 +13,7 @@ QtcPlugin {
|
||||
"silversearcherplugin.cpp", "silversearcherplugin.h",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"outputparser_test.cpp",
|
||||
"outputparser_test.h",
|
||||
|
||||
@@ -222,9 +222,7 @@ Project {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"texteditor_test.cpp",
|
||||
]
|
||||
|
||||
@@ -76,9 +76,7 @@ QtcPlugin {
|
||||
]
|
||||
}
|
||||
|
||||
Group {
|
||||
name: "Test sources"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"valgrindmemcheckparsertest.cpp",
|
||||
"valgrindmemcheckparsertest.h",
|
||||
|
||||
@@ -23,9 +23,7 @@ QtcPlugin {
|
||||
"vcpkgsettings.h",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"vcpkg_test.h",
|
||||
"vcpkg_test.cpp",
|
||||
|
||||
@@ -33,9 +33,7 @@ QtcPlugin {
|
||||
"webassemblytoolchain.h",
|
||||
]
|
||||
|
||||
Group {
|
||||
name: "Unit tests"
|
||||
condition: qtc.testsEnabled
|
||||
QtcTestFiles {
|
||||
files: [
|
||||
"webassembly_test.cpp",
|
||||
"webassembly_test.h",
|
||||
|
||||
Reference in New Issue
Block a user