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

Add --release flag #20

Open
smoelius opened this issue Jun 23, 2021 · 0 comments
Open

Add --release flag #20

smoelius opened this issue Jun 23, 2021 · 0 comments
Labels
good first issue Good for newcomers

Comments

@smoelius
Copy link
Collaborator

smoelius commented Jun 23, 2021

I think five steps are necessary:

  1. Modify the TestFuzzWithDeprecations struct to add the --release flag:
    struct TestFuzzWithDeprecations {
  2. Add a release field to this TestFuzz struct:
    pub struct TestFuzz {
  3. Modify this From implementation to set the release field in the TestFuzz struct when that field is set in the TestFuzzWithDeprecations struct:
    impl From<TestFuzzWithDeprecations> for super::TestFuzz {
  4. Modify the build function so that it checks whether the release field is set, and adds --release to the flags passed to cargo when it is:
    fn build(opts: &TestFuzz, quiet: bool) -> Result<Vec<Executable>> {
  5. Update the "Usage" section in the README: https://github.com/trailofbits/test-fuzz/blob/master/README.md#usage
@smoelius smoelius added the good first issue Good for newcomers label Feb 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant