aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/api/testdata
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-05-24 14:45:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-05-28 12:10:19 +0000
commit73f8478c9844aaf1282cc7461075f9c73230af2f (patch)
tree3b27e8b11893d0b52ff52b489a60e84da65b9941 /tests/auto/api/testdata
parent57fd0ab336f0d88c007e4d7f5d09230d9a9e460b (diff)
Allow rules without output artifacts
It is occasionally useful to have a rule whose purpose lies solely in its "side effects", that is, it does not produce any actual files. This patch removes the necessity to declare a dummy artifact in that case. [ChangeLog] Added support for rules without output artifacts Change-Id: I38e76a5ddc78ffa768e8ae1f270ae2f7461c5ee7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/api/testdata')
-rw-r--r--tests/auto/api/testdata/infinite-loop-process/infinite-loop.qbs5
-rw-r--r--tests/auto/api/testdata/process-result/process-result.qbs6
2 files changed, 2 insertions, 9 deletions
diff --git a/tests/auto/api/testdata/infinite-loop-process/infinite-loop.qbs b/tests/auto/api/testdata/infinite-loop-process/infinite-loop.qbs
index 6155baf28..fb09b9a97 100644
--- a/tests/auto/api/testdata/infinite-loop-process/infinite-loop.qbs
+++ b/tests/auto/api/testdata/infinite-loop-process/infinite-loop.qbs
@@ -14,10 +14,7 @@ Project {
Depends { name: "infinite-loop" }
Rule {
inputsFromDependencies: "application"
- Artifact {
- filePath: "dummy"
- fileTags: "mytype"
- }
+ outputFileTags: "mytype"
prepare: {
var cmd = new Command(inputs["application"][0].filePath);
cmd.description = "Calling application that runs forever";
diff --git a/tests/auto/api/testdata/process-result/process-result.qbs b/tests/auto/api/testdata/process-result/process-result.qbs
index 2aaf0626e..24fc595bc 100644
--- a/tests/auto/api/testdata/process-result/process-result.qbs
+++ b/tests/auto/api/testdata/process-result/process-result.qbs
@@ -15,11 +15,7 @@ Project {
property int argument
Rule {
inputsFromDependencies: ["application"]
- Artifact {
- filePath: "dummy"
- fileTags: product.type
- alwaysUpdated: false
- }
+ outputFileTags: "mytype"
prepare: {
var cmd = new Command(inputs["application"][0].filePath, [product.argument]);
if (product.redirectStdout)