Skip to content

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

Merged
jmschonfeld merged 2 commits into
swiftlang:mainfrom
jmschonfeld:swift-foundation-additions
Sep 10, 2024
Merged

Add package tests for FoundationEssentials, FoundationInternationalization, and FoundationMacros#149
jmschonfeld merged 2 commits into
swiftlang:mainfrom
jmschonfeld:swift-foundation-additions

Conversation

@jmschonfeld

Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

@swift-ci please test

@jmschonfeld

Copy link
Copy Markdown
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