Backport Makefile recipes for common test commands.
Signed-off-by: James Blair <mail@jamesblair.net>
This commit is contained in:
parent
b9248914cf
commit
84b85a0f0d
16
Makefile
16
Makefile
@ -161,6 +161,22 @@ test-full:
|
|||||||
$(info log-file: test-$(TEST_SUFFIX).log)
|
$(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
|
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:
|
ensure-docker-test-image-exists:
|
||||||
make pull-docker-test || ( echo "WARNING: Container Image not found in registry, building locally"; make build-docker-test )
|
make pull-docker-test || ( echo "WARNING: Container Image not found in registry, building locally"; make build-docker-test )
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user