Skip to content

Commit 8457a9a

Browse files
committed
add Makefile target for grpcproxy integration and grpcproxy e2e tests
Signed-off-by: joshjms <[email protected]>
1 parent 9592a90 commit 8457a9a

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,14 @@ test-integration:
175175
test-e2e:
176176
PASSES="build e2e" ./test.sh $(GO_TEST_FLAGS)
177177

178+
.PHONY: test-grpcproxy-integration
179+
test-grpcproxy-integration:
180+
PASSES='build grpcproxy_integration' RACE='true' ./test.sh $(GO_TEST_FLAGS)
181+
182+
.PHONY: test-grpcproxy-e2e
183+
test-grpcproxy-e2e:
184+
PASSES='build grpcproxy_e2e' RACE='true' ./test.sh $(GO_TEST_FLAGS)
185+
178186
.PHONY: test-e2e-release
179187
test-e2e-release:
180188
PASSES="build release e2e" ./test.sh $(GO_TEST_FLAGS)

test.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,17 @@ function functional_pass {
194194
}
195195

196196
function grpcproxy_pass {
197-
run_for_module "tests" go_test "./integration/... ./e2e" "fail_fast" : \
197+
grpcproxy_integration_pass "$@"
198+
grpcproxy_e2e_pass "$@"
199+
}
200+
201+
function grpcproxy_integration_pass {
202+
run_for_module "tests" go_test "./integration/..." "fail_fast" : \
203+
-timeout=45m -tags cluster_proxy "${COMMON_TEST_FLAGS[@]}" "$@"
204+
}
205+
206+
function grpcproxy_e2e_pass {
207+
run_for_module "tests" go_test "./e2e/..." "fail_fast" : \
198208
-timeout=45m -tags cluster_proxy "${COMMON_TEST_FLAGS[@]}" "$@"
199209
}
200210

0 commit comments

Comments
 (0)