gitea-tea/vendor/github.com/pelletier/go-toml/fuzz.sh
Andreas Ulm 10a9b72cdb initial cobra implementation
Signed-off-by: Andreas Ulm <andreas.ulm@root360.de>
2019-04-28 22:36:59 +02:00

16 lines
291 B
Bash

#! /bin/sh
set -eu
go get github.com/dvyukov/go-fuzz/go-fuzz
go get github.com/dvyukov/go-fuzz/go-fuzz-build
if [ ! -e toml-fuzz.zip ]; then
go-fuzz-build github.com/pelletier/go-toml
fi
rm -fr fuzz
mkdir -p fuzz/corpus
cp *.toml fuzz/corpus
go-fuzz -bin=toml-fuzz.zip -workdir=fuzz