aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/changed-files/project.qbs
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@digia.com>2014-08-06 15:08:28 +0200
committerChristian Kandeler <christian.kandeler@digia.com>2014-08-06 15:48:26 +0200
commit3871bb116d893c5bd405c32217aceaf8824d9bbc (patch)
tree1f20e5647b54b24bfe9f0c171fb3c70b5e35f4b5 /tests/auto/blackbox/testdata/changed-files/project.qbs
parentc6ee3922806999e0b22ece745cde88630e1ec67f (diff)
enhance TestBlackbox::changedFiles
It makes a difference whether we start from an initial build with or without the --changed-files option. An initial build without the --changed-files options followed by an incremental build with --changed-files unveils QBS-660. Task-number: QBS-660 Change-Id: Iee8466dd203bed01cf053c8eb78d7b960f20a035 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/changed-files/project.qbs')
-rw-r--r--tests/auto/blackbox/testdata/changed-files/project.qbs24
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/changed-files/project.qbs b/tests/auto/blackbox/testdata/changed-files/project.qbs
index 7fedd66d5..82411a659 100644
--- a/tests/auto/blackbox/testdata/changed-files/project.qbs
+++ b/tests/auto/blackbox/testdata/changed-files/project.qbs
@@ -1,5 +1,29 @@
import qbs
+import qbs.TextFile
CppApplication {
+ type: ["application", "stuff"]
files: ["file1.cpp", "file2.cpp", "main.cpp"]
+
+ Rule {
+ inputs: ["cpp"]
+ outputFileTags: ["stuff"]
+ outputArtifacts: {
+ return [{
+ filePath: input.completeBaseName + ".stuff",
+ fileTags: ["stuff"]
+ }];
+ }
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "creating " + output.fileName
+ cmd.sourceCode = function() {
+ var f = new TextFile(output.filePath, TextFile.WriteOnly);
+ f.write("crazy stuff");
+ f.close();
+ }
+ return cmd;
+ }
+ }
}
+