aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs')
-rw-r--r--tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs b/tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs
new file mode 100644
index 000000000..8d6c1f5da
--- /dev/null
+++ b/tests/auto/blackbox/testdata/not-always-updated/not-always-updated.qbs
@@ -0,0 +1,31 @@
+import qbs.TextFile
+
+Product {
+ type: "p"
+ Rule {
+ multiplex: true
+ Artifact { filePath: "dummy.txt"; fileTags: "t1"; alwaysUpdated: false }
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "creating dummy";
+ cmd.sourceCode = function() {};
+ return cmd;
+ }
+ }
+ Rule {
+ inputs: "t1"
+ Artifact { filePath: "o.txt"; fileTags: "p" }
+ prepare: {
+ var cmd = new JavaScriptCommand;
+ cmd.description = "creating final";
+ cmd.sourceCode = function() {
+ var f = new TextFile(output.filePath, TextFile.WriteOnly);
+ f.close();
+ };
+ return cmd;
+ }
+ }
+}
+
+
+