[.xcodeproj] Share SwiftXCTest scheme #47
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What's in this pull request?
Currently, running the Swift build script
/path/to/swift/utils/build-script --xctest
on OS X fails because it attempts to use the Linux-onlybuild_script.py
.We should make it possible for swift-corelibs-xctest to be built via the
--xctest
switch on OS X, which means making the project buildable via the command line.To make the project buildable via the command line, share the "SwiftXCTest" scheme. This allows the project to be built via:
Why merge this pull request?
After merging these changes and #46, I plan on allowing swift-corelibs-xctest to be built and tested via the Swift build script. This could be accomplished via the following changes to apple/swift:
We haven't traditionally been quick to notice when swift-corelibs-xctest is broken; the failures introduced by #33 and #44 took several days to even discover. Adding swift-corelibs-xctest to the Swift test suite will allow us to discover failures quicker.
What downsides are there to merging this pull request?
We probably want a shared scheme in any case, but one could argue that adding swift-corelibs-xctest tests to the Swift build script is premature. After all, the changes I suggest above already have two FIXMEs in them. Still, I think this is forward progress--the FIXMEs can be addressed in turn.