Skip to content

Commit

Permalink
Take fuzz targets out of the main workspace
Browse files Browse the repository at this point in the history
  • Loading branch information
tomleavy committed Nov 13, 2023
1 parent 239784f commit 053b159
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 14 deletions.
32 changes: 19 additions & 13 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,22 @@ jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-fuzz
run: cargo install cargo-fuzz
- name: Run Fuzz Targets
working-directory: mls-rs
run: |
cargo +nightly fuzz run application_data -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run cipher_text -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run deserialize -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run export_secret -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run mls_message -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run process_bytes -- -runs=$RUNS -timeout=$TIME
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly
- name: Install cargo-fuzz
run: cargo install cargo-fuzz
- name: Rust Fmt on fuzz targets
working-directory: mls-rs/fuzz
run: cargo fmt --all -- --check
- name: Clippy on fuzz targets
working-directory: mls-rs/fuzz
run: cargo clippy --all-targets --all-features --workspace -- -D warnings
- name: Run Fuzz Targets
working-directory: mls-rs
run: |
cargo +nightly fuzz run application_data -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run cipher_text -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run deserialize -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run export_secret -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run mls_message -- -runs=$RUNS -timeout=$TIME
cargo +nightly fuzz run process_bytes -- -runs=$RUNS -timeout=$TIME
1 change: 0 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ members = [
"mls-rs-core",
"mls-rs-ffi",
"mls-rs-identity-x509",
"mls-rs/fuzz",
"mls-rs/test_harness_integration",
"mls-rs-crypto-openssl",
"mls-rs-crypto-rustcrypto",
Expand Down

0 comments on commit 053b159

Please sign in to comment.