fuzz: put fuzzing stuff in own build tag (#1215)

No need to have this build all the time.
This commit is contained in:
Miek Gieben 2017-11-10 13:59:42 +00:00 committed by GitHub
parent 4443b4a096
commit 0186aadfcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 9 additions and 1 deletions

View file

@ -25,7 +25,7 @@ echo:
.PHONY: $(PLUGINS) .PHONY: $(PLUGINS)
$(PLUGINS): echo $(PLUGINS): echo
go-fuzz-build $(REPO)/$(@) go-fuzz-build -tags fuzz $(REPO)/$(@)
go-fuzz -bin=./$(@)-fuzz.zip -workdir=fuzz/$(@) go-fuzz -bin=./$(@)-fuzz.zip -workdir=fuzz/$(@)
.PHONY: clean .PHONY: clean

View file

@ -1,3 +1,5 @@
// +build fuzz
package cache package cache
import ( import (

View file

@ -1,3 +1,5 @@
// +build fuzz
package file package file
import ( import (

View file

@ -1,3 +1,5 @@
// +build fuzz
package proxy package proxy
import ( import (

View file

@ -1,3 +1,5 @@
// +build fuzz
package rewrite package rewrite
import ( import (