File: Makefile

package info (click to toggle)
golang-github-pkg-sftp 1.13.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 936 kB
  • sloc: makefile: 29
file content (27 lines) | stat: -rw-r--r-- 933 bytes parent folder | download | duplicates (3)
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
.PHONY: integration integration_w_race benchmark

integration:
	go test -integration -v ./...
	go test -testserver -v ./...
	go test -integration -testserver -v ./...
	go test -integration -allocator -v ./...
	go test -testserver -allocator -v ./...
	go test -integration -testserver -allocator -v ./...

integration_w_race:
	go test -race -integration -v ./...
	go test -race -testserver -v ./...
	go test -race -integration -testserver -v ./...
	go test -race -integration -allocator -v ./...
	go test -race -testserver -allocator -v ./...
	go test -race -integration -allocator -testserver -v ./...

COUNT ?= 1
BENCHMARK_PATTERN ?= "."

benchmark:
	go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -count=$(COUNT)

benchmark_w_memprofile:
	go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -count=$(COUNT) -memprofile memprofile.out
	go tool pprof -svg -output=memprofile.svg memprofile.out