From 64f13d666402a673c77b09e21ce3e7ba1ffdd3c2 Mon Sep 17 00:00:00 2001 From: liuwei Date: Thu, 30 Apr 2020 19:16:22 +0800 Subject: [PATCH] prepare integration test --- test/integration-test.mk | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration-test.mk b/test/integration-test.mk index 79f98139a..2fa9eb589 100644 --- a/test/integration-test.mk +++ b/test/integration-test.mk @@ -6,7 +6,7 @@ K8S_VERSION ?=1.16.4 KB_TOOLS_ARCHIVE_NAME :=kubebuilder-tools-$(K8S_VERSION)-$(GOHOSTOS)-$(GOHOSTARCH).tar.gz KB_TOOLS_ARCHIVE_PATH := $(TEST_TMP)/$(KB_TOOLS_ARCHIVE_NAME) -ensure-test-env: +ensure-kubebuilder-tools: ifeq "" "$(wildcard $(KUBEBUILDER_ASSETS))" $(info Downloading kubebuilder-tools into '$(KUBEBUILDER_ASSETS)') mkdir -p '$(KUBEBUILDER_ASSETS)' @@ -15,17 +15,17 @@ ifeq "" "$(wildcard $(KUBEBUILDER_ASSETS))" else $(info Using existing kubebuilder-tools from "$(KUBEBUILDER_ASSETS)") endif -.PHONY: ensure-test-env +.PHONY: ensure-kubebuilder-tools -clean-test-env: +clean-integration-test: $(RM) '$(KB_TOOLS_ARCHIVE_PATH)' rm -rf $(TEST_TMP)/kubebuilder $(RM) ./integration.test -.PHONY: clean-test-env +.PHONY: clean-integration-test -clean: clean-test-env +clean: clean-integration-test -test-integration: ensure-test-env +test-integration: ensure-kubebuilder-tools go test -c ./test/integration ./integration.test -ginkgo.slowSpecThreshold=15 -ginkgo.v -ginkgo.failFast -.PHONY: test-integration \ No newline at end of file +.PHONY: test-integration