From 85e49c61a3593a33e2107f5ffc7b0e1e03e4e255 Mon Sep 17 00:00:00 2001 From: Jonathan Rockway <2367+jrockway@users.noreply.github.com> Date: Wed, 29 Jun 2022 01:52:52 -0400 Subject: [PATCH] fuzz: pass in fuzzing time with FUZZTIME --- fuzz.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fuzz.sh b/fuzz.sh index 31a2af8..9caf204 100755 --- a/fuzz.sh +++ b/fuzz.sh @@ -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;