diff options
author | Joerg Bornemann <joerg.bornemann@digia.com> | 2013-11-11 08:59:27 +0100 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@digia.com> | 2013-11-12 16:28:50 +0100 |
commit | 93564d323514a96f6e848825e5336beff2410d2d (patch) | |
tree | 9d6525b76eaf69124025a63d641052c290e7f918 /tests/auto/blackbox/testdata/codegen | |
parent | 78fcaf4814c95f0a0c09c09857f45f011014fa8b (diff) |
translate multipart module names in moduleProperty function
Task-number: QBS-452
Change-Id: Ibd83e1866aee0e2922bfa6f2541151b58fb24ea5
Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
Diffstat (limited to 'tests/auto/blackbox/testdata/codegen')
-rw-r--r-- | tests/auto/blackbox/testdata/codegen/codegen.qbs | 6 |
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) |