gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

Makefile.fuzz (671B)


      1 # Makefile for fuzzing
      2 #
      3 # Use go-fuzz and needs the tools installed.
      4 # See https://blog.cloudflare.com/dns-parser-meet-go-fuzzer/
      5 #
      6 # Installing go-fuzz:
      7 # $ make -f Makefile.fuzz get
      8 # Installs:
      9 # * github.com/dvyukov/go-fuzz/go-fuzz
     10 # * get github.com/dvyukov/go-fuzz/go-fuzz-build
     11 
     12 all: build
     13 
     14 .PHONY: build
     15 build:
     16 	go-fuzz-build -tags fuzz github.com/miekg/dns
     17 
     18 .PHONY: build-newrr
     19 build-newrr:
     20 	go-fuzz-build -func FuzzNewRR -tags fuzz github.com/miekg/dns
     21 
     22 .PHONY: fuzz
     23 fuzz:
     24 	go-fuzz -bin=dns-fuzz.zip -workdir=fuzz
     25 
     26 .PHONY: get
     27 get:
     28 	go get github.com/dvyukov/go-fuzz/go-fuzz
     29 	go get github.com/dvyukov/go-fuzz/go-fuzz-build
     30 
     31 .PHONY: clean
     32 clean:
     33 	rm *-fuzz.zip