-
Notifications
You must be signed in to change notification settings - Fork 0
fix(go-runner): ensure test binary exists after execution #52
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
base: main
Are you sure you want to change the base?
Changes from all commits
daa2152
8b0c65c
3f94c58
251640a
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,6 +23,11 @@ fn run_cmd<P: AsRef<Path>>( | |
| let mut cmd = Command::new(go_binary); | ||
| cmd.args([ | ||
| "test", | ||
| // Disable stripping of symbols and debug information | ||
| "-ldflags=-s=false -w=false", | ||
| // Keep the test binary on disk after executing it. This is required by | ||
| // the runner to properly parse the symbols and debug info. | ||
| "-work", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor, but is there an easy way to clean this up ?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Unfortunately no, because we need the test binary to exist when the runner executes the The only alternative I see to this, is to parse the first line (and drop it) and then copy the test binary (which is always called |
||
| "-overlay", | ||
| &overlay_file.to_string_lossy(), | ||
| "-bench", | ||
|
|
||
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.
dont forget to drop this