mirror of
https://github.com/ipfs/kubo.git
synced 2025-07-01 10:49:24 +08:00
Merge pull request #4645 from ipfs/fix/4642
only run the build test on test_go_expensive
This commit is contained in:
11
mk/golang.mk
11
mk/golang.mk
@ -28,16 +28,19 @@ define go-try-build
|
|||||||
$(GOCC) build $(go-flags-with-tags) -o /dev/null "$(call go-pkg-name,$<)"
|
$(GOCC) build $(go-flags-with-tags) -o /dev/null "$(call go-pkg-name,$<)"
|
||||||
endef
|
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: GOTFLAGS += -test.short
|
||||||
test_go_short: test_go_expensive
|
test_go_short: test_go_test
|
||||||
.PHONY: test_go_short
|
.PHONY: test_go_short
|
||||||
|
|
||||||
test_go_race: GOTFLAGS += -race
|
test_go_race: GOTFLAGS += -race
|
||||||
test_go_race: test_go_expensive
|
test_go_race: test_go_test
|
||||||
.PHONY: test_go_race
|
.PHONY: test_go_race
|
||||||
|
|
||||||
test_go_expensive: $$(TEST_GO_BUILD) $$(DEPS_GO)
|
test_go_expensive: test_go_test $$(TEST_GO_BUILD)
|
||||||
$(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
|
|
||||||
.PHONY: test_go_expensive
|
.PHONY: test_go_expensive
|
||||||
TEST_GO += test_go_expensive
|
TEST_GO += test_go_expensive
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user