aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/language/testdata/module-merging-variant-values/modules/m2/m2.qbs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/language/testdata/module-merging-variant-values/modules/m2/m2.qbs')
-rw-r--r--tests/auto/language/testdata/module-merging-variant-values/modules/m2/m2.qbs14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/auto/language/testdata/module-merging-variant-values/modules/m2/m2.qbs b/tests/auto/language/testdata/module-merging-variant-values/modules/m2/m2.qbs
new file mode 100644
index 000000000..8361b91d4
--- /dev/null
+++ b/tests/auto/language/testdata/module-merging-variant-values/modules/m2/m2.qbs
@@ -0,0 +1,14 @@
+Module {
+ Depends { name: "m1" }
+ m1.arch: qbs.architecture
+ property string arch: qbs.architecture
+
+ validate: {
+ if (qbs.architecture !== "a1" && qbs.architecture !== "a2")
+ throw "Unexpected arch " + qbs.architecture;
+ if (arch !== qbs.architecture)
+ throw "Oops: " + arch + "/" + qbs.architecture;
+ if (m1.arch !== qbs.architecture)
+ throw "Oops: " + m1.arch + "/" + qbs.architecture;
+ }
+}