You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

15 lines
291 B

  1. #! /bin/sh
  2. set -eu
  3. go get github.com/dvyukov/go-fuzz/go-fuzz
  4. go get github.com/dvyukov/go-fuzz/go-fuzz-build
  5. if [ ! -e toml-fuzz.zip ]; then
  6. go-fuzz-build github.com/pelletier/go-toml
  7. fi
  8. rm -fr fuzz
  9. mkdir -p fuzz/corpus
  10. cp *.toml fuzz/corpus
  11. go-fuzz -bin=toml-fuzz.zip -workdir=fuzz