Fix tvos test break and pass interop server env (#29825)

pull/29840/head
Denny C. Dai 3 years ago committed by GitHub
parent 64b422091e
commit a235ef35b7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 17
      src/objective-c/tests/Tests.xcodeproj/xcshareddata/xcschemes/TvTests.xcscheme
  2. 10
      src/objective-c/tests/run_one_test.sh

@ -44,8 +44,6 @@
</SkippedTests>
</TestableReference>
</Testables>
<AdditionalOptions>
</AdditionalOptions>
</TestAction>
<LaunchAction
buildConfiguration = "Test"
@ -67,11 +65,26 @@
</BuildableReference>
</MacroExpansion>
<EnvironmentVariables>
<EnvironmentVariable
key = "HOST_PORT_LOCAL"
value = "localhost:5050"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "HOST_PORT_REMOTE"
value = "grpc-test.sandbox.googleapis.com"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "GRPC_CFSTREAM_RUN_LOOP"
value = "1"
isEnabled = "YES">
</EnvironmentVariable>
<EnvironmentVariable
key = "HOST_PORT_LOCALSSL"
value = "localhost:5051"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
</LaunchAction>
<ProfileAction

@ -79,12 +79,16 @@ fi
XCODEBUILD_FILTER_OUTPUT_SCRIPT="./xcodebuild_filter_output.sh"
export HOST_PORT_LOCALSSL=localhost:$TLS_PORT
export HOST_PORT_LOCAL=localhost:$PLAIN_PORT
export HOST_PORT_REMOTE=grpc-test.sandbox.googleapis.com
time xcodebuild \
-workspace Tests.xcworkspace \
-scheme $SCHEME \
-destination "$DESTINATION" \
HOST_PORT_LOCALSSL=localhost:$TLS_PORT \
HOST_PORT_LOCAL=localhost:$PLAIN_PORT \
HOST_PORT_REMOTE=grpc-test.sandbox.googleapis.com \
HOST_PORT_LOCALSSL=$HOST_PORT_LOCALSSL \
HOST_PORT_LOCAL=$HOST_PORT_LOCAL \
HOST_PORT_REMOTE=$HOST_PORT_REMOTE \
GCC_OPTIMIZATION_LEVEL=s \
test | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}"

Loading…
Cancel
Save