Adds a bash func that runs the interop test client command

pull/169/head
Tim Emiola 10 years ago
parent fb6d7fd572
commit c8ee19b905
  1. 14
      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

Loading…
Cancel
Save