only run the build test on test_go_expensive
fixes #4642 License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
Steven Allen committed
Feb 3, 2018 at 13:31 UTC
513b373a854a8670fbb5c4067c70eaf3ed629936
1 file changed
+7
-4
mk/golang.mk
+7
-4
@@ -28,16 +28,19 @@ define go-try-build
28
$(GOCC) build $(go-flags-with-tags) -o /dev/null "$(call go-pkg-name,$<)"
29
endef
30
31
+test_go_test: $$(DEPS_GO)
32
+ $(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
33
+.PHONY: test_go_test
34
+
35
test_go_short: GOTFLAGS += -test.short
32
-test_go_short: test_go_expensive
36
+test_go_short: test_go_test
37
.PHONY: test_go_short
38
39
test_go_race: GOTFLAGS += -race
36
-test_go_race: test_go_expensive
40
+test_go_race: test_go_test
41
.PHONY: test_go_race
42
39
-test_go_expensive: $$(TEST_GO_BUILD) $$(DEPS_GO)
40
- $(GOCC) test $(go-flags-with-tags) $(GOTFLAGS) ./...
43
+test_go_expensive: test_go_test $$(TEST_GO_BUILD)
44
.PHONY: test_go_expensive
45
TEST_GO += test_go_expensive
46