1*e07d83d3SAndroid Build Coastguard Worker#!/bin/bash 2*e07d83d3SAndroid Build Coastguard Worker 3*e07d83d3SAndroid Build Coastguard Workerset -exu -o pipefail 4*e07d83d3SAndroid Build Coastguard Workerif [[ -f /VERSION ]]; then 5*e07d83d3SAndroid Build Coastguard Worker cat /VERSION 6*e07d83d3SAndroid Build Coastguard Workerfi 7*e07d83d3SAndroid Build Coastguard Worker 8*e07d83d3SAndroid Build Coastguard Workercd github 9*e07d83d3SAndroid Build Coastguard Worker 10*e07d83d3SAndroid Build Coastguard Workerpushd grpc-java/interop-testing 11*e07d83d3SAndroid Build Coastguard WorkerGRADLE_OPTS="-Dorg.gradle.jvmargs='-Xmx1g'" \ 12*e07d83d3SAndroid Build Coastguard Worker ../gradlew installDist -x test -PskipCodegen=true -PskipAndroid=true 13*e07d83d3SAndroid Build Coastguard Workerpopd 14*e07d83d3SAndroid Build Coastguard Worker 15*e07d83d3SAndroid Build Coastguard Workergit clone -b master --single-branch --depth=1 https://github.com/grpc/grpc.git 16*e07d83d3SAndroid Build Coastguard Worker 17*e07d83d3SAndroid Build Coastguard Workergrpc/tools/run_tests/helper_scripts/prep_xds.sh 18*e07d83d3SAndroid Build Coastguard Worker 19*e07d83d3SAndroid Build Coastguard WorkerJAVA_OPTS=-Djava.util.logging.config.file=grpc-java/buildscripts/xds_logging.properties \ 20*e07d83d3SAndroid Build Coastguard Worker python3 grpc/tools/run_tests/run_xds_tests.py \ 21*e07d83d3SAndroid Build Coastguard Worker --test_case="ping_pong,circuit_breaking" \ 22*e07d83d3SAndroid Build Coastguard Worker --project_id=grpc-testing \ 23*e07d83d3SAndroid Build Coastguard Worker --project_num=830293263384 \ 24*e07d83d3SAndroid Build Coastguard Worker --source_image=projects/grpc-testing/global/images/xds-test-server-5 \ 25*e07d83d3SAndroid Build Coastguard Worker --path_to_server_binary=/java_server/grpc-java/interop-testing/build/install/grpc-interop-testing/bin/xds-test-server \ 26*e07d83d3SAndroid Build Coastguard Worker --gcp_suffix=$(date '+%s') \ 27*e07d83d3SAndroid Build Coastguard Worker --verbose \ 28*e07d83d3SAndroid Build Coastguard Worker --xds_v3_support \ 29*e07d83d3SAndroid Build Coastguard Worker --client_cmd="grpc-java/interop-testing/build/install/grpc-interop-testing/bin/xds-test-client \ 30*e07d83d3SAndroid Build Coastguard Worker --server=xds:///{server_uri} \ 31*e07d83d3SAndroid Build Coastguard Worker --stats_port={stats_port} \ 32*e07d83d3SAndroid Build Coastguard Worker --qps={qps} \ 33*e07d83d3SAndroid Build Coastguard Worker {rpcs_to_send} \ 34*e07d83d3SAndroid Build Coastguard Worker {metadata_to_send}" 35