diff options
author | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-01-08 14:15:15 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@theqtcompany.com> | 2015-01-08 17:08:00 +0100 |
commit | 49f4c6114c80d77ba9e16c17e6eae46eeae52bf5 (patch) | |
tree | 0c39b8e5f1800a2b585f624f11ad192c29b08075 /tests/auto/blackbox/testdata/wildcards-and-rules | |
parent | 340bad52dfdc2fa7e110d14c47f97a63530bbbbd (diff) |
Add failing autotest for newly discovered bug.
Task-number: QBS-723
Change-Id: I6cf98fac6c32a297e409bf4916761d3b7c6a9828
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/wildcards-and-rules')
-rw-r--r-- | tests/auto/blackbox/testdata/wildcards-and-rules/input1.inp | 0 | ||||
-rw-r--r-- | tests/auto/blackbox/testdata/wildcards-and-rules/project.qbs | 37 |
2 files changed, 37 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/wildcards-and-rules/input1.inp b/tests/auto/blackbox/testdata/wildcards-and-rules/input1.inp new file mode 100644 index 000000000..e69de29bb --- /dev/null +++ b/tests/auto/blackbox/testdata/wildcards-and-rules/input1.inp diff --git a/tests/auto/blackbox/testdata/wildcards-and-rules/project.qbs b/tests/auto/blackbox/testdata/wildcards-and-rules/project.qbs new file mode 100644 index 000000000..88fadd3a5 --- /dev/null +++ b/tests/auto/blackbox/testdata/wildcards-and-rules/project.qbs @@ -0,0 +1,37 @@ +import qbs +import qbs.TextFile + +Product { + name: "wildcards-and-rules" + type: "mytype" + files: ["*.inp", "*.dep"] + FileTagger { + patterns: "*.inp" + fileTags: ["inp"] + } + FileTagger { + patterns: "*.dep" + fileTags: ["dep"] + } + Rule { + multiplex: true + inputs: ["inp"] + explicitlyDependsOn: ["dep"] + Artifact { + filePath: "test.mytype" + fileTags: product.type + } + prepare: { + var cmd = new JavaScriptCommand(); + cmd.description = "Creating output artifact"; + cmd.highlight = "codegen"; + cmd.sourceCode = function() { + var file = new TextFile(output.filePath, TextFile.WriteOnly); + for (var i = 0; i < inputs.inp.length; ++i) + file.writeLine(inputs.inp[i].fileName); + file.close(); + } + return cmd; + } + } +} |