forked from goodbadreviewer/immcheck
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (23 loc) · 839 Bytes
/
Makefile
File metadata and controls
31 lines (23 loc) · 839 Bytes
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
test: clean
go test ./...
go test -tags immcheck ./...
go test -race -covermode atomic -coverprofile coverage.out ./...
coverage: test
go tool cover -html=coverage.out
bench:
go test -timeout 3h -count=5 -run=xxx -bench=BenchmarkImmcheck ./...
bench_hash:
go test -timeout 3h -count=5 -run=xxx -bench=BenchmarkHash ./...
profile: clean
go test -run=xxx -bench=BenchmarkImmcheckTransactions ./... -cpuprofile profile.out
go tool pprof -http=:8080 profile.out
lint: install-golangci-lint
golangci-lint run
debug_inline:
go build -gcflags='-m -d=ssa/check_bce/debug=1' ./immcheck.go
clean:
@go clean
@rm -f profile.out
@rm -f coverage.out
install-golangci-lint:
@which golangci-lint || curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(shell go env GOPATH)/bin 1.42.0