From 84b85a0f0d58a89c367a9b4d06da01039d79cdd4 Mon Sep 17 00:00:00 2001 From: James Blair Date: Wed, 2 Aug 2023 09:12:36 +1200 Subject: [PATCH] Backport Makefile recipes for common test commands. Signed-off-by: James Blair --- Makefile | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/Makefile b/Makefile index 3af91a190..20fc75155 100644 --- a/Makefile +++ b/Makefile @@ -161,6 +161,22 @@ test-full: $(info log-file: test-$(TEST_SUFFIX).log) PASSES="fmt build release unit integration functional e2e grpcproxy" ./test.sh 2<&1 | tee test-$(TEST_SUFFIX).log +.PHONY: test-unit +test-unit: + PASSES="unit" ./test.sh $(GO_TEST_FLAGS) + +.PHONY: test-integration +test-integration: + PASSES="integration" ./test.sh $(GO_TEST_FLAGS) + +.PHONY: test-e2e +test-e2e: + PASSES="build e2e" ./test.sh $(GO_TEST_FLAGS) + +.PHONY: test-e2e-release +test-e2e-release: + PASSES="build release e2e" ./test.sh $(GO_TEST_FLAGS) + ensure-docker-test-image-exists: make pull-docker-test || ( echo "WARNING: Container Image not found in registry, building locally"; make build-docker-test )