diff options
author | Tim Emiola <temiola@google.com> | 2015-01-22 17:11:57 -0800 |
---|---|---|
committer | Tim Emiola <temiola@google.com> | 2015-01-22 17:11:57 -0800 |
commit | c8ee19b9052981321992ae0bab7980422211c162 (patch) | |
tree | 95b5c16c311fc56bfce3dcaf39a3c46cf78397a7 /tools | |
parent | fb6d7fd5720773da1d68f05c2d58cd16bdaf7018 (diff) |
Adds a bash func that runs the interop test client command
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/gce_setup/grpc_docker.sh | 14 |
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 |