diff options
author | Makarand Dharmapurikar <makarandd@google.com> | 2017-04-12 12:16:28 -0700 |
---|---|---|
committer | Makarand Dharmapurikar <makarandd@google.com> | 2017-04-12 12:16:28 -0700 |
commit | b4e97270cc13849bb5a4585c88bc6385872d643b (patch) | |
tree | c85a66685f089e3457e6ea73c5c5d5a4c7e9f812 /src/objective-c/tests/InteropTestsRemote.m | |
parent | c44895ffe59c7f6ccf010995f0575cd02d851032 (diff) |
replaced hardcoded server path with cmdline arg
The host and port of the remote server can be specified via command line argument to xcodebuild.
Diffstat (limited to 'src/objective-c/tests/InteropTestsRemote.m')
-rw-r--r-- | src/objective-c/tests/InteropTestsRemote.m | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/objective-c/tests/InteropTestsRemote.m b/src/objective-c/tests/InteropTestsRemote.m index ff1193302b..5260fe4570 100644 --- a/src/objective-c/tests/InteropTestsRemote.m +++ b/src/objective-c/tests/InteropTestsRemote.m @@ -36,7 +36,11 @@ #import "InteropTests.h" -static NSString * const kRemoteSSLHost = @"grpc-test.sandbox.googleapis.com"; +// The server address is derived from preprocessor macro, which is +// in turn derived from environment variable of the same name. +#define NSStringize_helper(x) #x +#define NSStringize(x) @NSStringize_helper(x) +static NSString * const kRemoteSSLHost = NSStringize(HOST_PORT_REMOTE); // The Protocol Buffers encoding overhead of remote interop server. Acquired // by experiment. Adjust this when server's proto file changes. |