test/fuzz: add default testdata for fuzz tests

This commit is contained in:
William Banfield
2021-07-26 12:22:14 -04:00
parent 9212ad7c7f
commit ca5ddc83e3
19 changed files with 226 additions and 11 deletions
+16 -3
View File
@@ -1,8 +1,15 @@
#!/usr/bin/make -f
.PHONY: fuzz-mempool
fuzz-mempool:
cd mempool && \
.PHONY: fuzz-mempool-v1
fuzz-mempool-v1:
cd mempool/v1 && \
rm -f *-fuzz.zip && \
go-fuzz-build && \
go-fuzz
.PHONY: fuzz-mempool-v0
fuzz-mempool-v0:
cd mempool/v0 && \
rm -f *-fuzz.zip && \
go-fuzz-build && \
go-fuzz
@@ -37,3 +44,9 @@ fuzz-rpc-server:
rm -f *-fuzz.zip && \
go-fuzz-build && \
go-fuzz
clean:
find . -name corpus -type d -exec rm -rf {} +;
find . -name crashers -type d -exec rm -rf {} +;
find . -name suppressions -type d -exec rm -rf {} +;
find . -name *\.zip -type f -delete