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

[SR-14592] Create functional test for movable executable with resource bundle in SwiftPM #4425

Open
abertelrud opened this issue May 4, 2021 · 1 comment
Assignees

Comments

@abertelrud
Copy link
Contributor

Previous ID SR-14592
Radar None
Original Reporter @abertelrud
Type Improvement
Additional Detail from JIRA
Votes 0
Component/s Package Manager
Labels Improvement
Assignee @abertelrud
Priority Medium

md5: 97b766476e7b4d6db5fba20bf68d2a8c

relates to:

  • SR-14555 Bundle.module searches for bundle in swift binary location instead of Bundle.main of compiled binary

Issue Description:

#3463 fixed an issue with how the resource bundle accessor is synthesized in SwiftPM. In particular, it restored the ability to relocate the resource bundle next to the executable.

The fix has a unit test for the contents of the accessor, but we should also add a functional test that:

  • builds an executable that has a resource and that asserts that it can be loaded

  • verifies that the resource bundle gets created correctly

  • moves the executable and its resource bundle to some other location

  • runs the executable in the new location, making sure that it finds the resource bundle in the deployment location

@ffried
Copy link
Contributor

ffried commented May 5, 2021

I've taken a shot at this here: #3472

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants