In fuzzing add a final job verifying all the fuzz targets have been executed

This commit is contained in:
Riccardo Casatta 2021-09-24 10:47:16 +02:00
parent 3e310d3c26
commit 1aefc1ccf3
No known key found for this signature in database
GPG Key ID: FD986A969E450397
1 changed files with 17 additions and 0 deletions

View File

@ -34,3 +34,20 @@ jobs:
- run: echo "HFUZZ_RUN_ARGS=\"--run_time 30 --exit_upon_crash -v -f hfuzz_input/${{ matrix.fuzz_target }}/input\"" >> $GITHUB_ENV
- name: fuzz
run: cd fuzz && cargo +nightly hfuzz run ${{ matrix.fuzz_target }}
- run: echo "${{ matrix.fuzz_target }}.rs" >executed_${{ matrix.fuzz_target }}
- uses: actions/upload-artifact@v2
with:
name: executed_${{ matrix.fuzz_target }}
path: executed_${{ matrix.fuzz_target }}
verify-execution:
needs: fuzz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v2
- name: Display structure of downloaded files
run: ls -R
- run: find executed_* -type f -exec cat {} + | sort > executed
- run: ls fuzz/fuzz_targets | sort > expected
- run: diff expected executed