mirror of
https://github.com/ii64/sonic.git
synced 2026-06-20 16:45:22 +08:00
15 lines
No EOL
367 B
Makefile
15 lines
No EOL
367 B
Makefile
testname := FuzzMain
|
|
corpusdir := ./testdata/fuzz/${testname}
|
|
|
|
fuzz:
|
|
mkdir -p ${corpusdir}
|
|
rm -rf ./go-fuzz-corpus
|
|
git clone https://github.com/dvyukov/go-fuzz-corpus.git ./go-fuzz-corpus/
|
|
file2fuzz -o ${corpusdir} ./go-fuzz-corpus/json/corpus/* ./corpus/*
|
|
|
|
run:
|
|
GOARCH=amd64 go test -fuzz=${testname} -v
|
|
|
|
clean:
|
|
rm -rf ./go-fuzz-corpus/
|
|
rm -rf ./testdata/
|