grpc-java/run-test-server.sh

14 lines
411 B
Bash
Raw Normal View History

#!/bin/bash -e
TARGET='Test Service Server'
2015-01-28 02:25:39 +08:00
TARGET_CLASS='io.grpc.testing.integration.TestServiceServer'
2015-01-27 06:03:11 +08:00
TARGET_ARGS=''
for i in "$@"; do
TARGET_ARGS="$TARGET_ARGS, '$i'"
done
TARGET_ARGS="${TARGET_ARGS:2}"
cd "$(dirname "$(readlink -f "$0")")"
echo "[INFO] Running: $TARGET ($TARGET_CLASS $TARGET_ARGS)"
./gradlew -PmainClass="$TARGET_CLASS" -PappArgs="[$TARGET_ARGS]" :grpc-integration-testing:execute