提交 513b373a 作者: Steven Allen

only run the build test on test_go_expensive

fixes #4642

License: MIT
Signed-off-by: 's avatarSteven Allen <steven@stebalien.com>
上级 3f2c7746
......@@ -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
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论