aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRichard Weickelt <richard@weickelt.de>2019-11-07 22:45:05 +0100
committerRichard Weickelt <richard@weickelt.de>2019-11-15 19:11:47 +0000
commitf5f230c9c8faa29e240cf887048ead012554b259 (patch)
treea3253fc9bb07241d61acf2272051b84a0c1f6825 /tests
parent52c420c864a8b38c10e634948e428c3c1298dfa5 (diff)
Simplify multiplexing testcase
Remove distracting items not relevant for the testcase itself. This was maybe a blackboxtest at some point in history, but now it is only an API test. We might need to expand it in the future and thus it is important to keep it free from irrelevant code. Change-Id: Icc0d962c4dbd21c32b4a99987eade2f66b8b78ac Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/api/testdata/multiplexing/foo.txt1
-rw-r--r--tests/auto/api/testdata/multiplexing/multiplexing.qbs44
2 files changed, 0 insertions, 45 deletions
diff --git a/tests/auto/api/testdata/multiplexing/foo.txt b/tests/auto/api/testdata/multiplexing/foo.txt
deleted file mode 100644
index b596baf20..000000000
--- a/tests/auto/api/testdata/multiplexing/foo.txt
+++ /dev/null
@@ -1 +0,0 @@
-Behold! I am the input.
diff --git a/tests/auto/api/testdata/multiplexing/multiplexing.qbs b/tests/auto/api/testdata/multiplexing/multiplexing.qbs
index 8011e4250..243c73d46 100644
--- a/tests/auto/api/testdata/multiplexing/multiplexing.qbs
+++ b/tests/auto/api/testdata/multiplexing/multiplexing.qbs
@@ -5,24 +5,18 @@ Project {
name: "subproject 1"
Product {
name: "multiplex-using-export"
- type: ["reversed-text"]
- files: ["foo.txt"]
multiplexByQbsProperties: ["architectures"]
qbs.architectures: ["TRS-80", "C64"]
Depends { name: "multiplex-with-export" }
}
Product {
name: "multiplex-without-aggregator-2-depend-on-non-multiplexed"
- type: ["reversed-text"]
- files: ["foo.txt"]
multiplexByQbsProperties: ["architectures"]
qbs.architectures: ["TRS-80", "C64"]
Depends { name: "no-multiplexing" }
}
Product {
name: "multiplex-with-aggregator-2"
- type: ["reversed-text"]
- files: ["foo.txt"]
aggregate: true
multiplexByQbsProperties: ["architectures"]
qbs.architectures: ["TRS-80", "C64"]
@@ -31,8 +25,6 @@ Project {
Product {
name: "multiplex-with-aggregator-2-dependent"
Depends { name: "multiplex-with-aggregator-2" }
- type: ["something"]
- files: ["foo.txt"]
}
Product {
name: "non-multiplexed-with-dependencies-on-multiplexed"
@@ -56,40 +48,28 @@ Project {
name: "subproject 2"
Product {
name: "no-multiplexing"
- type: ["reversed-text"]
- files: ["foo.txt"]
}
Product {
name: "multiplex-without-aggregator-2"
- type: ["reversed-text"]
- files: ["foo.txt"]
multiplexByQbsProperties: ["architectures"]
qbs.architectures: ["TRS-80", "C64"]
}
Product {
name: "multiplex-with-export"
- type: ["reversed-text"]
- files: ["foo.txt"]
multiplexByQbsProperties: ["architectures"]
qbs.architectures: ["TRS-80", "C64"]
Export { Depends { name: "multiplex-without-aggregator-2" } }
}
Product {
name: "nonmultiplex-with-export"
- type: ["reversed-text"]
- files: ["foo.txt"]
Export { Depends { name: "multiplex-without-aggregator-2" } }
}
Product {
name: "nonmultiplex-exporting-aggregation"
- type: ["reversed-text"]
- files: ["foo.txt"]
Export { Depends { name: "multiplex-with-aggregator-2" } }
}
Product {
name: "multiplex-without-aggregator-4"
- type: ["reversed-text"]
- files: ["foo.txt"]
multiplexByQbsProperties: ["architectures", "buildVariants"]
qbs.architectures: ["TRS-80", "C64"]
qbs.buildVariants: ["debug", "release"]
@@ -104,28 +84,4 @@ Project {
qbs.architectures: ["TRS-80", "C64"]
qbs.architecture: "Atari ST"
}
- FileTagger {
- patterns: ["*.txt"]
- fileTags: ["text"]
- }
- Rule {
- inputs: ["text"]
- Artifact {
- filePath: input.baseName + ".txet"
- fileTags: ["reversed-text"]
- }
- prepare: {
- var cmd = new JavaScriptCommand();
- cmd.description = "reversing text";
- cmd.sourceCode = function() {
- var tf = new TextFile(input.filePath, TextFile.ReadOnly);
- var content = tf.readAll();
- tf.close();
- tf = new TextFile(output.filePath, TextFile.WriteOnly);
- tf.write(content.split("").reverse().join(""));
- tf.close();
- };
- return cmd;
- }
- }
}