forked from jsimonetti/rtnetlink
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.fuzz
32 lines (29 loc) · 865 Bytes
/
Makefile.fuzz
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Makefile for fuzzing
#
# Currently fuzzing only works inside $GOPATH
#
# Installing go-fuzz
#$ go get github.com/dvyukov/go-fuzz/go-fuzz
#$ go get github.com/dvyukov/go-fuzz/go-fuzz-build
# (or)
#$ make -f Makefile.fuzz install
#
# Start fuzzing:
#$ make -f Makefile.fuzz fuzz
#
# Cleanup using:
#$ make -f Makefile.fuzz clean
.PHONY: install
install:
go get github.com/dvyukov/go-fuzz/go-fuzz
go get github.com/dvyukov/go-fuzz/go-fuzz-build
.PHONY: fuzz
fuzz:
go-fuzz-build -tags gofuzz
echo go-fuzz -bin=./rtnetlink-fuzz.zip -workdir=testdata -func FuzzLinkMessage
echo go-fuzz -bin=./rtnetlink-fuzz.zip -workdir=testdata -func FuzzAddressMessage
echo go-fuzz -bin=./rtnetlink-fuzz.zip -workdir=testdata -func FuzzRouteMessage
echo go-fuzz -bin=./rtnetlink-fuzz.zip -workdir=testdata -func FuzzNeighMessage
.PHONY: clean
clean:
rm rtnetlink-fuzz.zip