aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs
diff options
context:
space:
mode:
authorDenis Shienkov <denis.shienkov@gmail.com>2019-10-17 14:55:44 +0300
committerDenis Shienkov <denis.shienkov@gmail.com>2019-10-21 11:11:24 +0000
commit1353ac64cf542dcd0b174e2e77e9c37d86fcba39 (patch)
treedd8758dad62e048f76ae04e8b96ccc0b7876b14d /tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs
parent02af2595540e7666b6aad1991599763230af339d (diff)
Add test for cpp.generateLinkerMapFile property
This test cover only the applications using the MSVC and GCC-like toolchains yet. Other toolchains and a product types can be added later if it will required. Change-Id: I37db96015774447e1e30b503d9853599be0177f2 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs')
-rw-r--r--tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs b/tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs
new file mode 100644
index 000000000..815e64853
--- /dev/null
+++ b/tests/auto/blackbox/testdata/generate-linker-map-file/generate-linker-map-file.qbs
@@ -0,0 +1,25 @@
+Project {
+ CppApplication {
+ name: "app-map"
+ files: ["main.cpp"]
+ cpp.generateLinkerMapFile: true
+ }
+ CppApplication {
+ name: "app-nomap"
+ files: ["main.cpp"]
+ cpp.generateLinkerMapFile: false
+ }
+ CppApplication {
+ name: "app-nomap-default"
+ files: ["main.cpp"]
+ }
+
+ Probe {
+ id: toolchainProbe
+ property bool isUsed: qbs.toolchain.contains("msvc")
+ || qbs.toolchain.contains("gcc")
+ configure: {
+ console.info("use test: " + isUsed);
+ }
+ }
+}