Skip to content

Conversation

@modocache
Copy link
Contributor

What's in this pull request?

This is the fourth of six pull requests necessary to introduce asynchronous testing to swift-corelibs-xctest.

swiftlang/swift-corelibs-xctest#43 introduces a dependency between XCTest and Foundation. Modify the build script in order to properly build all products:

Resolved bug number: None


Before merging this pull request to apple/swift repository:

Triggering Swift CI

The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:

Smoke Testing

Platform Comment
All supported platforms @swift-ci Please smoke test
OS X platform @swift-ci Please smoke test OS X platform
Linux platform @swift-ci Please smoke test Linux platform

Validation Testing

Platform Comment
All supported platforms @swift-ci Please test
OS X platform @swift-ci Please test OS X platform
Linux platform @swift-ci Please test Linux platform

Note: Only members of the Apple organization can trigger swift-ci.

swiftlang/swift-corelibs-xctest#43 introduces
a dependency between XCTest and Foundation. Modify the build script
in order to properly build all products:

- Build Foundation before XCTest, then link Foundation when building
  XCTest by using new '--foundation-build-dir' option.
- Link Foundation when testing SwiftPM by using new '--foundation'
  option.
- On Linux, ensure Foundation is built when XCTest is.
@modocache modocache changed the title [build-script] Build Foundation before XCTest [build-script] Build Foundation before XCTest [AsyncXCTest 4/5] Mar 7, 2016
@modocache modocache changed the title [build-script] Build Foundation before XCTest [AsyncXCTest 4/5] [build-script] Build Foundation before XCTest [AsyncXCTest 4/6] Mar 7, 2016
@modocache modocache assigned modocache and unassigned modocache Mar 7, 2016
@modocache
Copy link
Contributor Author

@gribozavr Any thoughts on these changes? Also, could you ask @swift-ci to please test? Thanks! 🙇

@gribozavr
Copy link
Contributor

@swift-ci Please test

@modocache
Copy link
Contributor Author

The tests pass! Any thoughts on the content? Is it acceptable that on Linux --xctest now implies --foundation?

@tkremenek
Copy link
Member

@gribozavr Change looks good to me. Any thoughts?

@modocache
Copy link
Contributor Author

@gribozavr @tkremenek Thanks for the review! Considering the changes look good and the tests pass, I'm going to go ahead and merge this. 🙇

modocache added a commit that referenced this pull request Mar 8, 2016
…tion

[build-script] Build Foundation before XCTest [AsyncXCTest 4/6]
@modocache modocache merged commit b7973a9 into swiftlang:master Mar 8, 2016
@modocache modocache deleted the build-script-xctest-on-foundation branch March 8, 2016 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants