You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2026-04-28 20:15:32 +02:00
295cda7af7
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
12 lines
199 B
Bash
Executable File
12 lines
199 B
Bash
Executable File
#!/bin/bash
|
|
pkg="$1"
|
|
timeout="$2"
|
|
|
|
grep "func Fuzz" "$pkg"/*.go |
|
|
cut -f2 -d' ' |
|
|
cut -f1 -d'(' |
|
|
while read -r f; do
|
|
go test -fuzztime="$timeout" -fuzz="$f" "$pkg"/...
|
|
done
|
|
go test "$pkg"/...
|