Makefile 933 B

123456789101112131415161718192021222324252627
  1. .PHONY: integration integration_w_race benchmark
  2. integration:
  3. go test -integration -v ./...
  4. go test -testserver -v ./...
  5. go test -integration -testserver -v ./...
  6. go test -integration -allocator -v ./...
  7. go test -testserver -allocator -v ./...
  8. go test -integration -testserver -allocator -v ./...
  9. integration_w_race:
  10. go test -race -integration -v ./...
  11. go test -race -testserver -v ./...
  12. go test -race -integration -testserver -v ./...
  13. go test -race -integration -allocator -v ./...
  14. go test -race -testserver -allocator -v ./...
  15. go test -race -integration -allocator -testserver -v ./...
  16. COUNT ?= 1
  17. BENCHMARK_PATTERN ?= "."
  18. benchmark:
  19. go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -count=$(COUNT)
  20. benchmark_w_memprofile:
  21. go test -integration -run=NONE -bench=$(BENCHMARK_PATTERN) -benchmem -count=$(COUNT) -memprofile memprofile.out
  22. go tool pprof -svg -output=memprofile.svg memprofile.out