#!/bin/sh # script/fuzz: fuzz the manifest parser for one minute. Run by hand only: # script/test already runs the committed seed corpus as ordinary tests, # and CI never fuzzes. An input that fails is written to # mfer/testdata/fuzz/FuzzNewManifestFromReader/; once the parser is fixed, # commit it there as a regression seed. set -eu ROOT="$(cd "$(dirname "$0")/.." && pwd -P)" main() { cd "$ROOT" go test -run '^$' -fuzz '^FuzzNewManifestFromReader$' \ -fuzztime 1m -parallel 2 ./mfer } main "$@"