From a8545bfa39742370708ce60db4da4a94362a03ed Mon Sep 17 00:00:00 2001 From: Christian Richter Date: Wed, 3 Dec 2025 15:16:53 +0100 Subject: [PATCH] add go test with race Signed-off-by: Christian Richter --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 22c8924990..44d4c8c361 100644 --- a/Makefile +++ b/Makefile @@ -198,6 +198,10 @@ go-mod-tidy: test: @go test -v -tags '$(TAGS)' -coverprofile coverage.out ./... +.PHONY: test-with-race +test-with-race: + @go test -race -v -tags '$(TAGS)' -coverprofile coverage.out ./... + .PHONY: go-coverage go-coverage: @if [ ! -f coverage.out ]; then $(MAKE) test &>/dev/null; fi;