|
|
@ -20,14 +20,18 @@ set -ev |
|
|
|
|
|
|
|
|
|
|
|
cd $(dirname $0) |
|
|
|
cd $(dirname $0) |
|
|
|
|
|
|
|
|
|
|
|
BINDIR=../../../bins/$CONFIG |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BAZEL=../../../tools/bazel |
|
|
|
BAZEL=../../../tools/bazel |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
INTEROP=../../../bazel-out/darwin-fastbuild/bin/test/cpp/interop/interop_server |
|
|
|
|
|
|
|
|
|
|
|
[ -d Tests.xcworkspace ] || { |
|
|
|
[ -d Tests.xcworkspace ] || { |
|
|
|
./build_tests.sh |
|
|
|
./build_tests.sh |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[ -f $INTEROP ] || { |
|
|
|
|
|
|
|
BAZEL build //test/cpp/interop:interop_server |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
[ -z "$(ps aux |egrep 'port_server\.py.*-p\s32766')" ] && { |
|
|
|
[ -z "$(ps aux |egrep 'port_server\.py.*-p\s32766')" ] && { |
|
|
|
echo >&2 "Can't find the port server. Start port server with tools/run_tests/start_port_server.py." |
|
|
|
echo >&2 "Can't find the port server. Start port server with tools/run_tests/start_port_server.py." |
|
|
|
exit 1 |
|
|
|
exit 1 |
|
|
@ -36,8 +40,8 @@ BAZEL=../../../tools/bazel |
|
|
|
PLAIN_PORT=$(curl localhost:32766/get) |
|
|
|
PLAIN_PORT=$(curl localhost:32766/get) |
|
|
|
TLS_PORT=$(curl localhost:32766/get) |
|
|
|
TLS_PORT=$(curl localhost:32766/get) |
|
|
|
|
|
|
|
|
|
|
|
BAZEL run -- //test/cpp/interop:interop_server --port=$PLAIN_PORT --max_send_message_size=8388608 & |
|
|
|
$INTEROP --port=$PLAIN_PORT --max_send_message_size=8388608 & |
|
|
|
BAZEL run -- //test/cpp/interop:interop_server --port=$TLS_PORT --max_send_message_size=8388608 --use_tls & |
|
|
|
$INTEROP --port=$TLS_PORT --max_send_message_size=8388608 --use_tls & |
|
|
|
|
|
|
|
|
|
|
|
trap 'kill -9 `jobs -p` ; echo "EXIT TIME: $(date)"' EXIT |
|
|
|
trap 'kill -9 `jobs -p` ; echo "EXIT TIME: $(date)"' EXIT |
|
|
|
|
|
|
|
|
|
|
|