aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 20 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 135fe3f9e..619a431e5 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,26 @@ ifeq ($(TEST_TYPE),coverage)
fi; \
done
endif
+ifeq ($(TEST_TYPE),fuzzit)
+ # skip fuzzing for PR
+ if [ "$(TRAVIS_PULL_REQUEST)" = "false" ] || [ "$(FUZZIT_TYPE)" = "local-regression" ] ; then \
+ export GO111MODULE=off; \
+ go get -u github.com/dvyukov/go-fuzz/go-fuzz-build; \
+ go get -u -v .; \
+ cd ../../go-acme/lego; \
+ git checkout v2.5.0; \
+ cd ../../coredns/coredns; \
+ LIBFUZZER=YES make -f Makefile.fuzz cache chaos file rewrite whoami corefile; \
+ wget -O fuzzit https://github.com/fuzzitdev/fuzzit/releases/download/v2.4.27/fuzzit_Linux_x86_64; \
+ chmod a+x fuzzit; \
+ ./fuzzit create job --type $(FUZZIT_TYPE) coredns/cache ./cache; \
+ ./fuzzit create job --type $(FUZZIT_TYPE) coredns/chaos ./chaos; \
+ ./fuzzit create job --type $(FUZZIT_TYPE) coredns/file ./file; \
+ ./fuzzit create job --type $(FUZZIT_TYPE) coredns/rewrite ./rewrite; \
+ ./fuzzit create job --type $(FUZZIT_TYPE) coredns/whoami ./whoami; \
+ ./fuzzit create job --type $(FUZZIT_TYPE) coredns/corefile ./corefile; \
+ fi;
+endif
core/plugin/zplugin.go core/dnsserver/zdirectives.go: plugin.cfg
GO111MODULE=on go generate coredns.go