diff --git a/make/test.mk b/make/test.mk index bc79cc273..1b52a33fb 100644 --- a/make/test.mk +++ b/make/test.mk @@ -128,7 +128,7 @@ e2e-ci: | $(NEEDS_GO) make/e2e-ci.sh $(BINDIR)/test/e2e.test: FORCE | $(NEEDS_GINKGO) $(BINDIR)/test - $(GINKGO) build --tags e2e_test test/e2e + CGO_ENABLED=0 $(GINKGO) build --ldflags="-w -s" --trimpath --tags e2e_test test/e2e mv test/e2e/e2e.test $(BINDIR)/test/e2e.test .PHONY: e2e-build @@ -150,7 +150,7 @@ $(BINDIR)/test/e2e.test: FORCE | $(NEEDS_GINKGO) $(BINDIR)/test ## Here's an example of how you might run a subset of the end-to-end tests ## which only require cert-manager to be installed: ## -## ./e2e --repo-root=/dev/null --ginkgo.focus="CA\ Issuer" --ginkgo.skip="Gateway" +## ./_bin/test/e2e.test --repo-root=/dev/null --ginkgo.focus="CA\ Issuer" --ginkgo.skip="Gateway" ## ## @category Development e2e-build: $(BINDIR)/test/e2e.test