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

[APIDiff] Enable tests on non-Darwin #3519

Merged
merged 1 commit into from Jul 1, 2021
Merged

Conversation

owenv
Copy link
Contributor

@owenv owenv commented May 29, 2021

Enable the api diff tests on Linux once apple/swift#37703 is merged

Motivation:

Make sure experimental-api-diff is works and is tested on Linux

Modifications:

This PR just enables tests, the cross-platform fix is in apple/swift#37703

Result:

API diff tests will run on all platforms

@owenv
Copy link
Contributor Author

owenv commented May 29, 2021

apple/swift#37703
@swift-ci please smoke test

@owenv
Copy link
Contributor Author

owenv commented May 29, 2021

apple/swift#37703
@swift-ci please smoke test

guard let tool = try? Resources.default.toolchain.getSwiftAPIDigester() else {
throw XCTSkip("swift-api-digester unavailable")
}
guard localFileSystem.isSymlink(tool) else {
Copy link
Member

@tomerd tomerd May 29, 2021

Choose a reason for hiding this comment

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

this seems odd. no better way to tell? cc @abertelrud

Copy link
Contributor

Choose a reason for hiding this comment

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

I agree, this is fairly subtle and won't work in the general case. Is there a -version flag with which it could be invoked and then a more robust check could be made?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

swift-api-digester is part of the frontend now, so unfortunately there's no version number to check for until "Swift Next" gets an official version number

@tomerd
Copy link
Member

tomerd commented Jul 1, 2021

@swift-ci please smoke test

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.

None yet

4 participants