mirror of
https://github.com/gravitational/teleport.git
synced 2026-09-24 16:17:11 +08:00
Ensure make test covers all packages
Selectively listing package paths is error-prone. Use `go list` to get the complete list instead. Filter out integration tests since they are slower. Also, enable the race detector by default. Local `make test` runs should not skip it.
This commit is contained in:
@@ -193,12 +193,10 @@ run-docs:
|
||||
# tests everything: called by Jenkins
|
||||
#
|
||||
.PHONY: test
|
||||
test: FLAGS ?=
|
||||
test: FLAGS ?= '-race'
|
||||
test: PACKAGES := $(shell go list ./... | grep -v integration)
|
||||
test: $(VERSRC)
|
||||
go test -tags "$(PAM_TAG) $(FIPS_TAG) $(BPF_TAG)" ./tool/tsh/... \
|
||||
./lib/... \
|
||||
./tool/teleport... $(FLAGS) $(ADDFLAGS)
|
||||
go vet ./tool/... ./lib/...
|
||||
go test -tags "$(PAM_TAG) $(FIPS_TAG) $(BPF_TAG)" $(PACKAGES) $(FLAGS) $(ADDFLAGS)
|
||||
|
||||
#
|
||||
# integration tests. need a TTY to work and not compatible with a race detector
|
||||
|
||||
Reference in New Issue
Block a user