aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-02-14 16:10:40 +0100
committerChristian Kandeler <christian.kandeler@digia.com>2014-02-18 10:22:57 +0100
commite92f68531460e78203ad5419a7e45d96a77339f5 (patch)
tree7a4160aeac6a7017b8a2b781750a9b11e70de314 /tests/auto/blackbox
parentf5697c64ef4f1c2784b18702e6ff842ae124deb5 (diff)
Use dynamic rules in some autotests.
They are not strictly necessary there, but add coverage of this feature. Change-Id: I4409575cb8a81b2fca0166388afb56c4701616b1 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/blackbox')
-rw-r--r--tests/auto/blackbox/testdata/ruleConditions/modules/narfzort/narfzort.qbs7
-rw-r--r--tests/auto/blackbox/testdata/ruleCycle/ruleCycle.qbs14
2 files changed, 12 insertions, 9 deletions
diff --git a/tests/auto/blackbox/testdata/ruleConditions/modules/narfzort/narfzort.qbs b/tests/auto/blackbox/testdata/ruleConditions/modules/narfzort/narfzort.qbs
index 75bebf74d..b29fb55ec 100644
--- a/tests/auto/blackbox/testdata/ruleConditions/modules/narfzort/narfzort.qbs
+++ b/tests/auto/blackbox/testdata/ruleConditions/modules/narfzort/narfzort.qbs
@@ -11,10 +11,11 @@ Module {
Rule {
condition: product.moduleProperty("narfzort", "buildZort");
inputs: ["narf"]
- Artifact {
- fileName: product.name + "." + input.fileName + ".zort"
+ outputFileTags: ["zort"]
+ outputArtifacts: [{
+ filePath: product.name + "." + input.fileName + ".zort",
fileTags: ["zort"]
- }
+ }]
prepare: {
var cmd = new JavaScriptCommand();
cmd.description = "generating " + FileInfo.fileName(output.fileName);
diff --git a/tests/auto/blackbox/testdata/ruleCycle/ruleCycle.qbs b/tests/auto/blackbox/testdata/ruleCycle/ruleCycle.qbs
index 34d052e0a..eca5cfa76 100644
--- a/tests/auto/blackbox/testdata/ruleCycle/ruleCycle.qbs
+++ b/tests/auto/blackbox/testdata/ruleCycle/ruleCycle.qbs
@@ -10,10 +10,11 @@ Project {
}
Rule {
inputs: ["grass"]
- Artifact {
- fileName: input.completeBaseName + ".cow"
+ outputFileTags: ["cow"]
+ outputArtifacts: [{
+ filePath: input.completeBaseName + ".cow",
fileTags: ["cow"]
- }
+ }]
prepare: { print("The cow feeds on grass."); }
}
Rule {
@@ -34,10 +35,11 @@ Project {
}
Rule {
inputs: ["fertilizer"]
- Artifact {
- fileName: input.completeBaseName + ".grass"
+ outputFileTags: ["grass"]
+ outputArtifacts: [{
+ filePath: input.completeBaseName + ".grass",
fileTags: ["grass"]
- }
+ }]
prepare: { print("The fertilizer lets the grass grow."); }
}
}