aboutsummaryrefslogtreecommitdiff
path: root/Makefile.fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.fuzz')
-rw-r--r--Makefile.fuzz12
1 files changed, 9 insertions, 3 deletions
diff --git a/Makefile.fuzz b/Makefile.fuzz
index 2a97d67f0..f9c22db4b 100644
--- a/Makefile.fuzz
+++ b/Makefile.fuzz
@@ -5,7 +5,7 @@
# e.g.
#
# make -f Makefile.fuzz proxy
-#
+#
# Each plugin that wants to join the fuzzing fray only needs to add a fuzz.go that calls
# the plugins's ServeDNS and used the plugin/pkg/fuzz for the Do function.
#
@@ -13,7 +13,7 @@
#$ go get github.com/dvyukov/go-fuzz/go-fuzz
#$ go get github.com/dvyukov/go-fuzz/go-fuzz-build
-REPO:="github.com/coredns/coredns/plugin"
+REPO:="github.com/coredns/coredns"
FUZZ:=$(dir $(wildcard plugin/*/fuzz.go)) # plugin/cache/
PLUGINS:=$(foreach f,$(FUZZ),$(subst plugin, ,$(f:/=))) # > /cache
@@ -25,9 +25,15 @@ echo:
.PHONY: $(PLUGINS)
$(PLUGINS): echo
- go-fuzz-build -tags fuzz $(REPO)/$(@)
+ go-fuzz-build -tags fuzz $(REPO)/plugin/$(@)
go-fuzz -bin=./$(@)-fuzz.zip -workdir=fuzz/$(@)
+.PHONY: corefile
+corefile:
+ go-fuzz-build -tags fuzz $(REPO)/test
+ go-fuzz -bin=./test-fuzz.zip -workdir=fuzz/$(@)
+
+
.PHONY: clean
clean:
rm *-fuzz.zip