From 513b373a854a8670fbb5c4067c70eaf3ed629936 Mon Sep 17 00:00:00 2001 From: Steven Allen Date: Sat, 3 Feb 2018 13:31:04 +0100 Subject: [PATCH] only run the build test on test_go_expensive fixes #4642 License: MIT Signed-off-by: Steven Allen --- mk/golang.mk | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/mk/golang.mk b/mk/golang.mk index 5a08d0e58..ebd8e19e0 100644 --- a/mk/golang.mk +++ b/mk/golang.mk @@ -28,16 +28,19 @@ define go-try-build $(GOCC) build $(go-flags-with-tags) -o /dev/null "$(call go-pkg-name,$<)" endef +test_go_test: $$(DEPS_GO) + $(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./... +.PHONY: test_go_test + test_go_short: GOTFLAGS += -test.short -test_go_short: test_go_expensive +test_go_short: test_go_test .PHONY: test_go_short test_go_race: GOTFLAGS += -race -test_go_race: test_go_expensive +test_go_race: test_go_test .PHONY: test_go_race -test_go_expensive: $$(TEST_GO_BUILD) $$(DEPS_GO) - $(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./... +test_go_expensive: test_go_test $$(TEST_GO_BUILD) .PHONY: test_go_expensive TEST_GO += test_go_expensive