Support built-in testing infrastructure with qbs build.

I.e. define WITH_TESTS for debug builds or if the respective
environment variable is set.

Change-Id: I2764ece50d0783e8cb030b1695e6f59cf6063248
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Christian Kandeler
2012-09-05 11:01:43 +02:00
committed by Joerg Bornemann
parent 405217c111
commit 40d919eed8
15 changed files with 63 additions and 19 deletions

View File

@@ -1,6 +1,7 @@
import qbs.base 1.0
import "../QtcPlugin.qbs" as QtcPlugin
import "../../../qbs/defaults.js" as Defaults
QtcPlugin {
name: "CppTools"
@@ -107,6 +108,11 @@ QtcPlugin {
"TypeHierarchyBuilder.h"
]
Group {
condition: Defaults.testsEnabled(qbs)
files: ["cppcodegen_test.cpp", "cppcompletion_test.cpp"]
}
ProductModule {
Depends { name: "CPlusPlus" }
}