Skip to content

Commit

Permalink
Xcode: Add support for generating XCTest test bundles out of Qt testc…
Browse files Browse the repository at this point in the history
…ases

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 <[email protected]>
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
torarnv authored and Tor Arne Vestbø committed Mar 6, 2015
1 parent ddf09ad commit 006fc32
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions mkspecs/features/testcase.prf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 006fc32

Please sign in to comment.