forked from mesosphere-backup/fuzzlr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
54 lines (40 loc) · 1.33 KB
/
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
default: clean bin/go-fuzz_executor bin/go-fuzz_scheduler bin/go-fuzz
run: clean bin/go-fuzz_executor bin/go-fuzz run-scheduler
clean:
-rm bin/fuzzlr_*
bin:
-mkdir bin
bin/fuzzlr-scheduler: bin
go build -o bin/fuzzler-scheduler cmd/fuzzlr-scheduler/app.go
bin/fuzzlr_executor: bin
go build -o bin/fuzzlr-executor cmd/fuzzlr-executor/app.go
bin/go-fuzz: bin
git submodule init
git submodule update
cd _vendor/go-fuzz/go-fuzz; \
for arch in {darwin,linux}; do \
GOOS=$$arch go build -o ../../../bin/go-fuzz-$$arch; \
done
bin/go-fuzz-build: bin
git submodule init
git submodule update
cd _vendor/go-fuzz/go-fuzz-build; go build -o ../../../bin/go-fuzz-build
bin/test: bin/go-fuzz-build
for arch in {darwin,linux}; do \
GOOS=$$arch bin/go-fuzz-build -o bin/fmt-fuzz-$$arch.zip github.com/dvyukov/go-fuzz/examples/png; \
done
bin/corpus.zip: bin
zip bin/corpus.zip $(GOPATH)/src/github.com/dvyukov/go-fuzz/examples/png/corpus/*
go-fuzz: bin/go-fuzz bin/test bin/corpus.zip
run-scheduler:
go run -race cmd/fuzzlr-scheduler/app.go -logtostderr=true
install:
go install ./cmd/...
cover:
for i in `dirname **/*_test.go | grep -v "_vendor" | sort | uniq`; do \
echo $$i; \
go test -v -race ./$$i/... -coverprofile=em-coverage.out; \
go tool cover -func=em-coverage.out; rm em-coverage.out; \
done
test:
go test -race ./...