Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.0.0] Build and install swift-testing in toolchains #76050

Merged
merged 2 commits into from
Aug 24, 2024

Conversation

rintaro
Copy link
Member

@rintaro rintaro commented Aug 22, 2024

Cherry-pick #75837 into release/6.0.0

  • Explanation: As mentioned in the (now approved) A New Direction for Testing in Swift vision document, include the swift-testing project in Swift toolchains.
  • Scope: Packaging, SwiftPM, SwiftTesting
  • Risk: Low-Mid. This is a build-script only changes without any application code changes. As swift-testing in toolchain is a new addition, it won't break existing files. That being said, swiftpm may changes the behavior depending on the existence of swift-testing in the search paths.
  • Testing: Passes current test suite. Manually tested PR toolchains
  • Issues: rdar://123924911
  • Reviewer: Eric Miotto (@edymtt), Evan Wilde (@etcwilde)

* Add swift-testing to update-checkout

(cherry picked from commit 19910c6)

* Build script changes to begin building and installing swift-testing into toolchains (on Darwin, so far)

(cherry picked from commit 97e85a6)

* Add swift-testing to Linux presets too

(cherry picked from commit ff5ece1)

* Improve description of new build-script flags

(cherry picked from commit c8d7d13)

* Fix header comment

(cherry picked from commit 155e4c8)

* [swift-testing] Build tweak

* Remove SwiftSyntax product dependency
* Correct CMAKE_BUILD_TYPE

(cherry picked from commit e06d38b)

* [Windows] Build and install swift-testing in Windows toolchains

 * Basically following XCTest scheme.
 * Build TestingMacro separately from Testing library and install it to
   the toolchain's `bin`
 * Testing swift-testing itself is TODO

(cherry picked from commit f069aec)

* [build-preset] Add swift-testing to incrmental bots

(cherry picked from commit 6a38329)

* [build-script] Separate SwiftTestinMacros from SwiftTesting product

Also, build them for all hosts including cross compiling host.

(cherry picked from commit e98c5ea)

* [6.0] Add swift-testing to update-checkout-config.json

To release/6.0 scheme.

* [build-script] Fix product dependencies

SwiftPM now depends on `SwiftTesting`, `SwiftTesting` depends on
`SwiftTestingMacros`

rdar://133946466
(cherry picked from commit 852aa77)

---------

Co-authored-by: Stuart Montgomery <[email protected]>
(cherry picked from commit 222fd1d)
@rintaro rintaro requested a review from a team as a code owner August 22, 2024 23:22
@rintaro
Copy link
Member Author

rintaro commented Aug 22, 2024

@rintaro
Copy link
Member Author

rintaro commented Aug 23, 2024

1 similar comment
@rintaro
Copy link
Member Author

rintaro commented Aug 23, 2024

@rintaro
Copy link
Member Author

rintaro commented Aug 23, 2024

@rintaro rintaro merged commit 88a347d into swiftlang:release/6.0.0 Aug 24, 2024
5 checks passed
@rintaro rintaro deleted the 6.0.0-add-swift-testing branch August 26, 2024 17:44
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.

2 participants