nathanmittler | ffc18f6 | 2014-10-28 16:14:27 -0700 | [diff] [blame] | 1 | #!/bin/bash -e |
| 2 | TARGET='Test Service Server' |
nmittler | f831458 | 2015-01-27 10:25:39 -0800 | [diff] [blame] | 3 | TARGET_CLASS='io.grpc.testing.integration.TestServiceServer' |
nathanmittler | ffc18f6 | 2014-10-28 16:14:27 -0700 | [diff] [blame] | 4 | |
nmittler | 02c953e | 2015-01-26 14:03:11 -0800 | [diff] [blame] | 5 | TARGET_ARGS='' |
| 6 | for i in "$@"; do |
| 7 | TARGET_ARGS="$TARGET_ARGS, '$i'" |
| 8 | done |
| 9 | TARGET_ARGS="${TARGET_ARGS:2}" |
| 10 | |
Eric Anderson | 31179ec | 2015-02-17 13:46:09 -0800 | [diff] [blame] | 11 | cd "$(dirname "$(readlink -f "$0")")" |
nathanmittler | ffc18f6 | 2014-10-28 16:14:27 -0700 | [diff] [blame] | 12 | echo "[INFO] Running: $TARGET ($TARGET_CLASS $TARGET_ARGS)" |
Eric Anderson | 5d37b29 | 2015-02-17 12:44:28 -0800 | [diff] [blame] | 13 | ./gradlew -PmainClass="$TARGET_CLASS" -PappArgs="[$TARGET_ARGS]" :grpc-integration-testing:execute |