summaryrefslogtreecommitdiffstats
path: root/mkspecs/features/testcase.prf
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2015-02-13 15:28:32 +0100
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2015-03-06 19:01:40 +0000
commit006fc32ca7ab5a837ef7b4d5bb4debb753414675 (patch)
tree0e69d96c062978b5fe113dca5e326796b3968c45 /mkspecs/features/testcase.prf
parentddf09adeeb165117f3802c64cb355f2e03c2bf5d (diff)
Xcode: Add support for generating XCTest test bundles out of Qt testcases
If the user adds CONFIG+=bundle and doesn't set QMAKE_BUNDLE_EXTENSION, we interpret that as a request to generate a test bundle. Change-Id: Id4fbb64d39cddd6f95ac641a910a9d5543c30daa Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
Diffstat (limited to 'mkspecs/features/testcase.prf')
-rw-r--r--mkspecs/features/testcase.prf6
1 files changed, 6 insertions, 0 deletions
diff --git a/mkspecs/features/testcase.prf b/mkspecs/features/testcase.prf
index 770afa3386..c77f3b70ab 100644
--- a/mkspecs/features/testcase.prf
+++ b/mkspecs/features/testcase.prf
@@ -187,5 +187,11 @@ contains(INSTALLS, target) {
}
}
+macx-xcode:bundle:isEmpty(QMAKE_BUNDLE_EXTENSION) {
+ QMAKE_PBX_PRODUCT_TYPE = com.apple.product-type.bundle.unit-test
+ QMAKE_PBX_BUNDLE_TYPE = wrapper.cfbundle
+ QMAKE_BUNDLE_EXTENSION = .xctest
+}
+
} # have_target