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.

52 lines
1.0 KiB

  1. #!/usr/bin/make -f
  2. .PHONY: fuzz-mempool-v1
  3. fuzz-mempool-v1:
  4. cd mempool/v1 && \
  5. rm -f *-fuzz.zip && \
  6. go-fuzz-build && \
  7. go-fuzz
  8. .PHONY: fuzz-mempool-v0
  9. fuzz-mempool-v0:
  10. cd mempool/v0 && \
  11. rm -f *-fuzz.zip && \
  12. go-fuzz-build && \
  13. go-fuzz
  14. .PHONY: fuzz-p2p-addrbook
  15. fuzz-p2p-addrbook:
  16. cd p2p/addrbook && \
  17. rm -f *-fuzz.zip && \
  18. go run ./init-corpus/main.go && \
  19. go-fuzz-build && \
  20. go-fuzz
  21. .PHONY: fuzz-p2p-pex
  22. fuzz-p2p-pex:
  23. cd p2p/pex && \
  24. rm -f *-fuzz.zip && \
  25. go run ./init-corpus/main.go && \
  26. go-fuzz-build && \
  27. go-fuzz
  28. .PHONY: fuzz-p2p-sc
  29. fuzz-p2p-sc:
  30. cd p2p/secret_connection && \
  31. rm -f *-fuzz.zip && \
  32. go run ./init-corpus/main.go && \
  33. go-fuzz-build && \
  34. go-fuzz
  35. .PHONY: fuzz-rpc-server
  36. fuzz-rpc-server:
  37. cd rpc/jsonrpc/server && \
  38. rm -f *-fuzz.zip && \
  39. go-fuzz-build && \
  40. go-fuzz
  41. clean:
  42. find . -name corpus -type d -exec rm -rf {} +;
  43. find . -name crashers -type d -exec rm -rf {} +;
  44. find . -name suppressions -type d -exec rm -rf {} +;
  45. find . -name *\.zip -type f -delete