Run all Go tests with flag -race
This commit is contained in:
parent
31407141cf
commit
a9d023d567
16
Makefile
16
Makefile
|
|
@ -89,7 +89,7 @@ telegraf:
|
|||
|
||||
.PHONY: test
|
||||
test:
|
||||
go test -short ./...
|
||||
go test -race -short ./...
|
||||
|
||||
.PHONY: fmt
|
||||
fmt:
|
||||
|
|
@ -107,12 +107,12 @@ fmtcheck:
|
|||
|
||||
.PHONY: test-windows
|
||||
test-windows:
|
||||
go test -short ./plugins/inputs/ping/...
|
||||
go test -short ./plugins/inputs/win_perf_counters/...
|
||||
go test -short ./plugins/inputs/win_services/...
|
||||
go test -short ./plugins/inputs/procstat/...
|
||||
go test -short ./plugins/inputs/ntpq/...
|
||||
go test -short ./plugins/processors/port_name/...
|
||||
go test -race -short ./plugins/inputs/ping/...
|
||||
go test -race -short ./plugins/inputs/win_perf_counters/...
|
||||
go test -race -short ./plugins/inputs/win_services/...
|
||||
go test -race -short ./plugins/inputs/procstat/...
|
||||
go test -race -short ./plugins/inputs/ntpq/...
|
||||
go test -race -short ./plugins/processors/port_name/...
|
||||
|
||||
.PHONY: vet
|
||||
vet:
|
||||
|
|
@ -139,7 +139,7 @@ check: fmtcheck vet
|
|||
|
||||
.PHONY: test-all
|
||||
test-all: fmtcheck vet
|
||||
go test ./...
|
||||
go test -race ./...
|
||||
|
||||
.PHONY: check-deps
|
||||
check-deps:
|
||||
|
|
|
|||
Loading…
Reference in New Issue