Optimize unit test app config.
This commit is contained in:
parent
895b02ef0d
commit
3af79ccfcc
6
qbs/imports/VTestApp.qbs
Normal file
6
qbs/imports/VTestApp.qbs
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
VApp {
|
||||||
|
type: base.concat("autotest")
|
||||||
|
bundle.isBundle: false
|
||||||
|
install: false
|
||||||
|
condition: buildconfig.enableUnitTests
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
import qbs.FileInfo
|
import qbs.FileInfo
|
||||||
import qbs.File
|
import qbs.File
|
||||||
|
|
||||||
VApp {
|
VTestApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "Qt"; submodules: ["testlib", "gui", "printsupport"] }
|
Depends { name: "Qt"; submodules: ["testlib", "gui", "printsupport"] }
|
||||||
Depends { name: "VTestLib" }
|
Depends { name: "VTestLib" }
|
||||||
|
@ -9,10 +9,7 @@ VApp {
|
||||||
name: "CollectionTest"
|
name: "CollectionTest"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "CollectionTest" : "collectionTest"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "CollectionTest" : "collectionTest"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
type: base.concat("autotest", "tst_files")
|
type: base.concat("tst_files")
|
||||||
bundle.isBundle: false
|
|
||||||
install: false
|
|
||||||
condition: buildconfig.enableUnitTests
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"qttestmainlambda.cpp",
|
"qttestmainlambda.cpp",
|
||||||
|
|
|
@ -1,15 +1,11 @@
|
||||||
VApp {
|
VTestApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "QMUParserLib" }
|
Depends { name: "QMUParserLib" }
|
||||||
|
|
||||||
name: "ParserTest"
|
name: "ParserTest"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "ParserTest" : "parserTest"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "ParserTest" : "parserTest"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
type: base.concat("autotest")
|
|
||||||
consoleApplication: true
|
consoleApplication: true
|
||||||
bundle.isBundle: false
|
|
||||||
install: false
|
|
||||||
condition: buildconfig.enableUnitTests
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"main.cpp"
|
"main.cpp"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import qbs.FileInfo
|
import qbs.FileInfo
|
||||||
|
|
||||||
VApp {
|
VTestApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "VTestLib" }
|
Depends { name: "VTestLib" }
|
||||||
Depends { name: "Qt"; submodules: ["testlib", "xml", "gui", "printsupport"] }
|
Depends { name: "Qt"; submodules: ["testlib", "xml", "gui", "printsupport"] }
|
||||||
|
@ -8,10 +8,6 @@ VApp {
|
||||||
name: "TranslationsTest"
|
name: "TranslationsTest"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "TranslationsTest" : "translationsTest"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "TranslationsTest" : "translationsTest"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
type: base.concat("autotest")
|
|
||||||
bundle.isBundle: false
|
|
||||||
install: false
|
|
||||||
condition: buildconfig.enableUnitTests
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"qttestmainlambda.cpp",
|
"qttestmainlambda.cpp",
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
VApp {
|
VTestApp {
|
||||||
Depends { name: "buildconfig" }
|
Depends { name: "buildconfig" }
|
||||||
Depends { name: "VTestLib" }
|
Depends { name: "VTestLib" }
|
||||||
Depends { name: "Qt"; submodules: ["testlib"] }
|
Depends { name: "Qt"; submodules: ["testlib"] }
|
||||||
|
@ -11,10 +11,6 @@ VApp {
|
||||||
name: "ValentinaTest"
|
name: "ValentinaTest"
|
||||||
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "ValentinaTest" : "valentinaTest"
|
buildconfig.appTarget: qbs.targetOS.contains("macos") ? "ValentinaTest" : "valentinaTest"
|
||||||
targetName: buildconfig.appTarget
|
targetName: buildconfig.appTarget
|
||||||
type: base.concat("autotest")
|
|
||||||
bundle.isBundle: false
|
|
||||||
install: false
|
|
||||||
condition: buildconfig.enableUnitTests
|
|
||||||
|
|
||||||
files: [
|
files: [
|
||||||
"qttestmainlambda.cpp",
|
"qttestmainlambda.cpp",
|
||||||
|
|
Loading…
Reference in New Issue
Block a user