aboutsummaryrefslogtreecommitdiff
path: root/scripts/fuzz.sh
blob: fb13e4933a1a83435c9392f5b945451519501d95 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/bash

set -ex

pushd lib/xixanta
cargo +nightly fuzz run fuzz-target-parser -- -max_total_time=180
cargo +nightly fuzz run fuzz-target-assembler -- -max_total_time=180
popd

pushd lib/header
cargo +nightly fuzz run fuzz-target-header -- -max_total_time=180
popd

# For vnf, we want to give it some ROM files as a corpus so it does a better job
# at fuzzing, otherwise vnf would just return a super early normal error and
# quit.
mkdir -p lib/vnf/fuzz/corpus/fuzz-target-vnf
cp tests/out/*.nes lib/vnf/fuzz/corpus/fuzz-target-vnf/
pushd lib/vnf
cargo +nightly fuzz run fuzz-target-vnf -- -max_total_time=180
popd