aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2018-07-12 17:05:50 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2018-07-13 06:02:46 +0000
commit3393c9fbb834750f9437e6fef42482602d307a0f (patch)
treea84e4edfe6f77c619b3d79f28661032830fc9bb2 /tests/auto/blackbox/testdata
parent72d56f1e95b87cf6983e0b348d7c05528d095f18 (diff)
Report an error on unexpected output tags
The artifacts a dynamic rule produces need to be consistent with what it declares in its outputFileTags property. Somewhat suprisingly, such a check was missing so far, so we managed to make such mistakes in our very own modules. These are also fixed here. Change-Id: I9052a8c4b0423e8fd146c9fc67bf5c3ce752c638 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata')
-rw-r--r--tests/auto/blackbox/testdata/erroneous/tag-mismatch/tag-mismatch.qbs35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/erroneous/tag-mismatch/tag-mismatch.qbs b/tests/auto/blackbox/testdata/erroneous/tag-mismatch/tag-mismatch.qbs
new file mode 100644
index 000000000..51ea28e99
--- /dev/null
+++ b/tests/auto/blackbox/testdata/erroneous/tag-mismatch/tag-mismatch.qbs
@@ -0,0 +1,35 @@
+Product {
+ name: "p"
+ type: "p_type"
+ Rule {
+ multiplex: true
+ outputFileTags: ["x"]
+ outputArtifacts: [{filePath: "dummy1", fileTags: ["x","y","z"]}]
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "generating " + output.fileName;
+ cmd.sourceCode = function() { };
+ return cmd;
+ }
+ }
+ Rule {
+ inputs: ["y"]
+ Artifact { filePath: "dummy2"; fileTags: "p_type" }
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "generating " + output.fileName;
+ cmd.sourceCode = function() { };
+ return cmd;
+ }
+ }
+ Rule {
+ inputs: ["x"]
+ Artifact { filePath: "dummy3"; fileTags: "p_type" }
+ prepare: {
+ var cmd = new JavaScriptCommand();
+ cmd.description = "generating " + output.fileName;
+ cmd.sourceCode = function() { };
+ return cmd;
+ }
+ }
+}