forked from vcabbage/amqp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
31 lines (22 loc) · 780 Bytes
/
Makefile
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
PACKAGE := pack.ag/amqp
FUZZ_DIR := ./fuzz
all: test
fuzzconn:
go-fuzz-build -o $(FUZZ_DIR)/conn.zip -func FuzzConn $(PACKAGE)
go-fuzz -bin $(FUZZ_DIR)/conn.zip -workdir $(FUZZ_DIR)/conn
fuzzmarshal:
go-fuzz-build -o $(FUZZ_DIR)/marshal.zip -func FuzzUnmarshal $(PACKAGE)
go-fuzz -bin $(FUZZ_DIR)/marshal.zip -workdir $(FUZZ_DIR)/marshal
fuzzclean:
rm -f $(FUZZ_DIR)/**/{crashers,suppressions}/*
rm -f $(FUZZ_DIR)/*.zip
test:
TEST_CORPUS=1 go test -tags gofuzz -race -run=Corpus
go test -tags gofuzz -v -race ./...
integration:
go test -tags "integration pkgerrors" -count=1 -v -race .
test386:
TEST_CORPUS=1 go test -tags "gofuzz" -count=1 -v .
ci: test386 coverage
coverage:
TEST_CORPUS=1 go test -tags "integration gofuzz" -cover -coverprofile=cover.out -v