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

Infer properties of derived test target. #7041

Merged
merged 3 commits into from Oct 31, 2023

Conversation

grynspan
Copy link
Contributor

Right now, when we construct the derived test target used on Linux/Windows with corelibs-xctest, we don't preserve the platforms property. The toolchain then infers a value for it based on the current OS. Since Swift doesn't currently support versioning on those platforms, the end result is the same.

However, if we want to start using a derived test target with swift-testing on Apple platforms, we need to propagate this information correctly. This PR does that.

@grynspan
Copy link
Contributor Author

@swift-ci please test

Copy link
Member

@tomerd tomerd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@grynspan grynspan added the bug label Oct 26, 2023
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

Ah, self-hosted compiler is too old for Fancy If™. Will fix when I am back at a desk next week.

Right now, when we construct the derived test target used on Linux/Windows with corelibs-xctest, we don't preserve the `platforms` property. The toolchain then infers a value for it based on the current OS. Since Swift doesn't currently support versioning on those platforms, the end result is the same.

However, if we want to start using a derived test target with swift-testing on Apple platforms, we need to propagate this information correctly. This PR does that.
@grynspan grynspan force-pushed the jgrynspan/derived-test-target-platforms branch from 5077844 to dfb9785 Compare October 31, 2023 13:07
@grynspan
Copy link
Contributor Author

@swift-ci please test

@grynspan
Copy link
Contributor Author

@swift-ci please test macOS

@grynspan
Copy link
Contributor Author

@swift-ci please test Windows

@grynspan grynspan merged commit c9bf5b3 into main Oct 31, 2023
5 checks passed
@grynspan grynspan deleted the jgrynspan/derived-test-target-platforms branch October 31, 2023 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants