diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -13,12 +13,20 @@ ENVTEST_K8S_VERSION=1.35.0 HELM_FILES := $(shell find deploy/example-webhook) # FIXME: The environment variables are required by the test helper in cert-manager, but not required to run the tests. -test: setup-envtest +.PHONY: test test-unit check-test-config +test: check-test-config setup-envtest TEST_ASSET_ETCD=$(LOCALBIN)/k8s/$(ENVTEST_K8S_VERSION)-$(OS)-$(ARCH)/etcd \ TEST_ASSET_KUBE_APISERVER=$(LOCALBIN)/k8s/$(ENVTEST_K8S_VERSION)-$(OS)-$(ARCH)/kube-apiserver \ TEST_ASSET_KUBECTL=$(LOCALBIN)/k8s/$(ENVTEST_K8S_VERSION)-$(OS)-$(ARCH)/kubectl \ + $(GO) test -v -count=1 -tags=conformance -timeout=30m . + +test-unit: $(GO) test -v . +check-test-config: + @test -n "$$TEST_ZONE_NAME" || { echo "TEST_ZONE_NAME is required for live conformance tests" >&2; exit 1; } + @test -n "$$HOSTINGER_API_TOKEN" || { echo "HOSTINGER_API_TOKEN is required for live conformance tests" >&2; exit 1; } + .PHONY: clean clean: chmod -R u+w $(LOCALBIN) $(OUT) 2>/dev/null || true |
