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

Add package tests for FoundationEssentials, FoundationInternationalization, and FoundationMacros #149

Merged
merged 2 commits into from
Sep 10, 2024

Conversation

jmschonfeld
Copy link
Contributor

The package integration tests already include very small, fundamental tests to ensure that the Foundation libraries in the toolchain can be loaded. Now that Foundation's tests are built and run with SwiftPM, these package integration tests are critical to ensure that the binaries installed into the toolchain are functional (have correct rpaths, are installed to the proper locations, link the appropriate libraries, etc.) since the unit tests will rely on separately built, testable binaries that are not installed. This expands the set of tests within the Foundation package tests to also exercise imports of FoundationEssentials and FoundationInternationalization, as well as ensure that FoundationMacros can be loaded by the compiler. The last piece is the main driver for adding this, since nothing in the toolchain today uses FoundationMacros, so this is important to avoid shipping a broken macro module.

@jmschonfeld
Copy link
Contributor Author

@swift-ci please test

@jmschonfeld
Copy link
Contributor Author

With the latest changes, these tests passed at swiftlang/swift#75321

@jmschonfeld jmschonfeld merged commit 7b48faa into swiftlang:main Sep 10, 2024
@jmschonfeld jmschonfeld deleted the swift-foundation-additions branch September 10, 2024 15:40
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