aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2017-06-16 15:19:14 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2017-06-16 15:19:14 +0200
commit397172f1a8c3c5dce4809d46675dee5ae58cc841 (patch)
treec14359f36b8d5738320b4a6a9f5dfdc191e8943c /tests
parent2856d90378f1bef4cb9f26d0938b78bb6aefb17c (diff)
parent4d4ba7670ac60dc5906fe01f2d950c22aace1c18 (diff)
Merge 1.8 into master
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/blackbox/testdata/response-files/response-files.qbs35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/response-files/response-files.qbs b/tests/auto/blackbox/testdata/response-files/response-files.qbs
index 7913287e1..2979fcdfd 100644
--- a/tests/auto/blackbox/testdata/response-files/response-files.qbs
+++ b/tests/auto/blackbox/testdata/response-files/response-files.qbs
@@ -34,4 +34,39 @@ Project {
}
}
}
+ Product {
+ name: "lotsofobjects"
+ type: ["dynamiclibrary"]
+ Depends { name: "cpp" }
+ Rule {
+ multiplex: true
+ outputFileTags: ["cpp"]
+ outputArtifacts: {
+ var artifacts = [];
+ for (var i = 0; i < 1000; ++i)
+ artifacts.push({filePath: "source-" + i + ".cpp", fileTags: ["cpp"]});
+ return artifacts;
+ }
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "generating " + outputs["cpp"].length + " dummy source files";
+ cmd.outputFilePaths = outputs["cpp"].map(function (a) {
+ return a.filePath;
+ });
+ cmd.sourceCode = function () {
+ var index = 0;
+ outputFilePaths.map(function (fp) {
+ var tf = new TextFile(fp, TextFile.WriteOnly);
+ try {
+ tf.writeLine("extern int foo" + index + "() { return 0; }");
+ ++index;
+ } finally {
+ tf.close();
+ }
+ });
+ };
+ return [cmd];
+ }
+ }
+ }
}