From 93564d323514a96f6e848825e5336beff2410d2d Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Mon, 11 Nov 2013 08:59:27 +0100 Subject: translate multipart module names in moduleProperty function Task-number: QBS-452 Change-Id: Ibd83e1866aee0e2922bfa6f2541151b58fb24ea5 Reviewed-by: Christian Kandeler --- tests/auto/blackbox/testdata/codegen/codegen.qbs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests/auto/blackbox/testdata/codegen') 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) -- cgit v1.2.3