Skip to content

Commit

Permalink
ci: add fuzz tests to the CI runners
Browse files Browse the repository at this point in the history
Adds a script to run all the fuzz tests in a CI run.
  • Loading branch information
ebds-rs committed Aug 18, 2023
1 parent 4e3bacd commit de50fee
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ebds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,3 +100,8 @@ jobs:
GITHUB_ACTIONS_OS: ${{matrix.os}}
RUST_TARGET: ${{matrix.target.rust}}
run: cargo test --all --release
- name: Run all the fuzz tests (debug)
env:
GITHUB_ACTIONS_OS: ubuntu-latest
UST_TARGET: ${{matrix.target.rust}}
run: bash scripts/fuzz-runner.sh
7 changes: 7 additions & 0 deletions scripts/fuzz-runner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env bash

cargo install cargo-fuzz

cargo fuzz run -s none fuzz_build_message -- -runs=1000000
cargo fuzz run -s none fuzz_omnibus_reply -- -runs=1000000
cargo fuzz run -s none fuzz_omnibus_reply_from_bytes -- -runs=1000000

0 comments on commit de50fee

Please sign in to comment.