aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/gce_setup/grpc_docker.sh14
1 files changed, 13 insertions, 1 deletions
diff --git a/tools/gce_setup/grpc_docker.sh b/tools/gce_setup/grpc_docker.sh
index a19915594a..bfa4c808be 100755
--- a/tools/gce_setup/grpc_docker.sh
+++ b/tools/gce_setup/grpc_docker.sh
@@ -634,6 +634,18 @@ grpc_interop_gen_ruby_cmd() {
echo $the_cmd
}
+# constructs the full dockerized Go interop test cmd.
+#
+# call-seq:
+# flags= .... # generic flags to include the command
+# cmd=$($grpc_gen_test_cmd $flags)
+grpc_interop_gen_go_cmd() {
+ local cmd_prefix="sudo docker run grpc/go bin/bash -c";
+ local test_script="cd /go/src/github.com/google/grpc-go/interop/client";
+ local test_script+=" && go run client.go --use_tls=true";
+ local the_cmd="$cmd_prefix '$test_script $@ 1>&2'";
+}
+
# constructs the full dockerized java interop test cmd.
#
# call-seq:
@@ -664,4 +676,4 @@ grpc_interop_gen_php_cmd() {
}
-# TODO(grpc-team): add grpc_interop_gen_xxx_cmd for python|cxx|nodejs|go
+# TODO(grpc-team): add grpc_interop_gen_xxx_cmd for python|cxx|nodejs