diff options
author | Christian Kandeler <christian.kandeler@qt.io> | 2017-06-16 15:19:14 +0200 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2017-06-16 15:19:14 +0200 |
commit | 397172f1a8c3c5dce4809d46675dee5ae58cc841 (patch) | |
tree | c14359f36b8d5738320b4a6a9f5dfdc191e8943c /tests | |
parent | 2856d90378f1bef4cb9f26d0938b78bb6aefb17c (diff) | |
parent | 4d4ba7670ac60dc5906fe01f2d950c22aace1c18 (diff) |
Merge 1.8 into master
Change-Id: I9d2f3f3ec834a1dfc4069258d2e58b9130156ec8
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/blackbox/testdata/response-files/response-files.qbs | 35 |
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]; + } + } + } } |