Skip to content

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

@abertelrud

Description

@abertelrud
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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions