Skip to content
This repository has been archived by the owner on Nov 1, 2023. It is now read-only.

embed coverage debugger scripts #783

Merged
merged 4 commits into from
Apr 9, 2021

Conversation

bmc-msft
Copy link
Contributor

@bmc-msft bmc-msft commented Apr 9, 2021

This PR embeds the coverage debugger scripts in the binaries, which streamlines the redistribution. Users can specify ONEFUZZ_TOOLS to specify a path to the scripts using existing behaviors.

let (script_path, _temp_dir) = match env::var("ONEFUZZ_TOOLS") {
Ok(tools_dir) => {
let script_path = PathBuf::from(tools_dir);
if cfg!(target_os = "linux") {
Copy link
Member

Choose a reason for hiding this comment

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

It might be easier to track the logic if these branch cases were broken out into #[cfg(target_os = "<os>")]-annotated helper functions.

@ghost
Copy link

ghost commented Apr 9, 2021

Hello @bmc-msft!

Because this pull request has the auto-merge label, I will be glad to assist with helping to merge this pull request once all check-in policies pass.

Do note that I've been instructed to only help merge pull requests of this repository that have been opened for at least 18 hours, a condition that will be fulfilled in about 9 hours 22 minutes. No worries though, I will be back when the time is right! 😉

p.s. you can customize the way I help with merging this pull request, such as holding this pull request until a specific person approves. Simply @mention me (@msftbot) and give me an instruction to get started! Learn more here.

@bmc-msft bmc-msft merged commit ef8e200 into microsoft:main Apr 9, 2021
@bmc-msft bmc-msft deleted the embed-debugger-scripts branch April 9, 2021 23:16
@ghost ghost locked as resolved and limited conversation to collaborators May 10, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants