diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 09:19:16 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-18 09:19:16 +0100 |
| commit | 6af3219daee1457c3b9fb03fe73d2b0019d70408 (patch) | |
| tree | 266f263c52846b6b53167df370175935780eea10 /.github/workflows/ci.yml | |
| parent | 407048d0037c8d6d26c7e3fe2384e974212f124e (diff) | |
| download | tools.nes-6af3219daee1457c3b9fb03fe73d2b0019d70408.tar.gz tools.nes-6af3219daee1457c3b9fb03fe73d2b0019d70408.zip | |
header: Add fuzzy testing
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
Diffstat (limited to '.github/workflows/ci.yml')
| -rw-r--r-- | .github/workflows/ci.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 589ccbe..66c9075 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,3 +67,24 @@ jobs: run: | cd lib/xixanta cargo +nightly fuzz run fuzz_target_2 -- -max_total_time=180 + + fuzz_header: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Update rust toolchain to nightly + run: | + rustup update nightly + rustup default nightly + + - name: Install cargo fuzz + run: cargo install cargo-fuzz + + - name: Build with nightly + run: cargo build --verbose + + - name: Fuzzy test the header parser + run: | + cd lib/header + cargo +nightly fuzz run fuzz_target_header -- -max_total_time=180 |
