aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/installed-transformer-output
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@digia.com>2014-08-21 13:58:18 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-08-21 14:55:42 +0200
commit1358bf739a6580ccc1f4c113d5b1ba72784793a0 (patch)
tree52422df365cdfd409025e38df0b98906fa6d7ce5 /tests/auto/blackbox/testdata/installed-transformer-output
parent08dffd6c5a7c72b7e18e16f7a6668c8c16bfc0a7 (diff)
Apply file tags filter also to Transformer outputs.
This is currently done only for Rule artifacts. Task-number: QBS-668 Change-Id: Iddeda8a9d567cc8122f3aca2c1c1e3ea878e687c Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/installed-transformer-output')
-rw-r--r--tests/auto/blackbox/testdata/installed-transformer-output/qbs668.qbs29
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/installed-transformer-output/qbs668.qbs b/tests/auto/blackbox/testdata/installed-transformer-output/qbs668.qbs
new file mode 100644
index 000000000..eeffe25fc
--- /dev/null
+++ b/tests/auto/blackbox/testdata/installed-transformer-output/qbs668.qbs
@@ -0,0 +1,29 @@
+import qbs 1.0
+import qbs.TextFile
+
+Product {
+ name: "install-test"
+ Group {
+ qbs.install: true
+ qbs.installDir: "textfiles"
+ fileTagsFilter: "text"
+ }
+
+ Transformer {
+ Artifact {
+ filePath: "HelloWorld.txt"
+ fileTags: ["text"]
+ }
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "Creating file:'" + output.fileName + "'";
+ cmd.highlight = "codegen";
+ cmd.sourceCode = function() {
+ var file = new TextFile(output.filePath, TextFile.WriteOnly);
+ file.writeLine("Hello World!")
+ file.close();
+ }
+ return cmd;
+ }
+ }
+}