diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2013-03-18 10:35:50 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-03-18 11:10:36 +0100 |
commit | e0d8d7178734c888c4e5938a6047210c50871c59 (patch) | |
tree | 473c65dd0b7073ae1b0fae7d0038d4a782cc8810 /qbs.qbs | |
parent | e0b913e9b827c5be6a9c525e6ac2942e157ee8ec (diff) |
qbs project files: Add support for auto tests.
Change-Id: I02715cda889f9f271a4372b0dec70645674f8843
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'qbs.qbs')
-rw-r--r-- | qbs.qbs | 30 |
1 files changed, 26 insertions, 4 deletions
@@ -2,7 +2,7 @@ import qbs 1.0 Project { property string version: "0.3.0" - property bool enableTests: false + property bool enableUnitTests: false references: [ "src/app/config/config.qbs", "src/app/config-ui/config-ui.qbs", @@ -14,15 +14,37 @@ Project { "src/lib/lib.qbs", "src/plugins/scanner/cpp/cpp.qbs", "src/plugins/scanner/qt/qt.qbs", - ] + "tests/auto/blackbox/blackbox.qbs", + "tests/auto/cmdlineparser/cmdlineparser.qbs", + ].concat(unitTests) + + property list unitTests: enableUnitTests ? [ + "tests/auto/buildgraph/buildgraph.qbs", + "tests/auto/language/language.qbs", + "tests/auto/tools/tools.qbs" + ] : [] Product { name: "share" Group { files: ["share/qbs"] qbs.install: true - qbs.installDir: "shared" + qbs.installDir: "share" + } + + Transformer { + inputs: "share/qbs" + Artifact { + fileName: "share/qbs" + fileTags: "blubb" // FIXME: Needs to be here because of qbs bug + } + prepare: { + var cmd = new JavaScriptCommand(); + cmd.description = "Copying share/qbs to build directory."; + cmd.highlight = "codegen"; + cmd.sourceCode = function() { File.copy(input.fileName, output.fileName); } + return cmd; + } } } } - |