aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/codegen
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata/codegen')
-rw-r--r--tests/auto/blackbox/testdata/codegen/codegen.qbs6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/codegen/codegen.qbs b/tests/auto/blackbox/testdata/codegen/codegen.qbs
index d7210e21c..bb71a5540 100644
--- a/tests/auto/blackbox/testdata/codegen/codegen.qbs
+++ b/tests/auto/blackbox/testdata/codegen/codegen.qbs
@@ -18,6 +18,7 @@ Project {
fileTags: ['text']
}
Depends { name: 'cpp' }
+ Depends { name: 'Qt.core' }
}
Rule {
@@ -40,6 +41,11 @@ Project {
return str;
}
+ // check whether multipart module name translation is working
+ var actual = product.moduleProperty("Qt.core", "mocName");
+ if (!actual || !actual.contains("moc"))
+ throw "multipart module name translation is broken";
+
// check whether we can access project properties here
var expected = "CODEGEN_" + product.moduleProperty("qbs", "targetOS")[0].toUpperCase();
if (project.osSpecificName !== expected)