-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Add functional test for binary with moved resources #3472
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
Add functional test for binary with moved resources #3472
Conversation
fb4ba1d
to
ca789b2
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Firstly, thank you so much for adding this test!
Comments inline. The major one is that it's better to move the bundle rather than copying, so that the one in the build directory can't accidentally be found. The the overall structure of the test here is good, I think!
Thanks again!
@abertelrud Thanks for the review! I've just pushed the changes I've made and replied to your comments inline. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great to me. Thanks for taking this on!
@swift-ci please smoke test |
@abertelrud Looking at the Linux CI failures, I guess I need to build each product separately after all... 👀 |
c9f1349
to
16320dc
Compare
@abertelrud Using |
@swift-ci please smoke test |
@swift-ci please smoke test |
Thanks @tomerd! |
Thanks, this looks great to me. All good to merge it? |
All good from my side, yea. 👍 Btw. should I open a cherry pick PR against release/5.5 with this as well? |
thanks @ffried no need in a 5.5 cherry pick imo as this is focused on a test and no functionality added |
* Add functional tests for binary with moved resources * Remove .gitignore for resources fixtures * Use local file system for file operations * Build each product separately
Add a functional test that produces a binary with resources, moves the binary and its resources and executes it.
Motivation:
Attempts to add the test that was described in this comment on #3463.
This would resolve https://bugs.swift.org/browse/SR-14592.
Modifications:
Add a functional test by adding a new Fixture and test method.
Result:
There's a test case that tests that binaries with resources can be moved to a different place and still find their resources (as long as they're placed next to the binary).