Skip to content

Commit

Permalink
fuzz: pass in fuzzing time with FUZZTIME
Browse files Browse the repository at this point in the history
  • Loading branch information
jrockway committed Jun 29, 2022
1 parent c772753 commit 85e49c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fuzz.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/env bash

FUZZTIME=${FUZZTIME:-10s}

for t in `go test -list Fuzz ./pkg/parse | egrep -v '^(ok|\?)'`; do
echo $t
go test -fuzz="^${t}$" -fuzztime=10s ./pkg/parse
go test -fuzz="^${t}$" -fuzztime=$FUZZTIME ./pkg/parse
echo "---"
done;

0 comments on commit 85e49c6

Please sign in to comment.