]> Cypherpunks.ru repositories - gostls13.git/commit
testing: fix -run behavior with fuzz tests
authorKatie Hockman <katie@golang.org>
Thu, 7 Oct 2021 20:26:36 +0000 (16:26 -0400)
committerKatie Hockman <katie@golang.org>
Tue, 12 Oct 2021 14:32:53 +0000 (14:32 +0000)
commit36a265a625a8320fea93aad62da4003b2cc54f72
tree31493e8d1d066a5c0194c199fb61e6ea6179e20e
parent46796703d739ba77913b0a2addab093a02b6d79d
testing: fix -run behavior with fuzz tests

This change fixes some issues with -run, and
the subsequent command line output when running
in verbose mode. It replaces CorpusEntry.Name
with CorpusEntry.Path, and refactors the code
accordingly.

This change also adds a lot of additional tests
which check explicit command line output when
fuzz targets are run without fuzzing. This will
be important to avoid regressions.

Updates #48149

Change-Id: If34b1f51db646317b7b51c3c38ae53231d01f568
Reviewed-on: https://go-review.googlesource.com/c/go/+/354632
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Katie Hockman <katie@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jay Conrod <jayconrod@google.com>
src/cmd/go/testdata/script/test_fuzz_mutate_crash.txt
src/cmd/go/testdata/script/test_fuzz_run.txt [new file with mode: 0644]
src/cmd/go/testdata/script/test_fuzz_seed_corpus.txt
src/internal/fuzz/fuzz.go
src/internal/fuzz/worker.go
src/testing/fuzz.go