From bbf217ebff626e1f6dd673be58eb2e0de94ece98 Mon Sep 17 00:00:00 2001 From: "Denny C. Dai" Date: Wed, 21 Sep 2022 14:47:26 -0700 Subject: [PATCH] final script fix for proper destination & target --- .../ios/CFStreamTests/build_and_run_tests.sh | 30 ++++++++++++++----- test/cpp/ios/build_and_run_tests.sh | 4 ++- 2 files changed, 25 insertions(+), 9 deletions(-) diff --git a/test/core/iomgr/ios/CFStreamTests/build_and_run_tests.sh b/test/core/iomgr/ios/CFStreamTests/build_and_run_tests.sh index 4d77091728860..e7fafd07ec134 100755 --- a/test/core/iomgr/ios/CFStreamTests/build_and_run_tests.sh +++ b/test/core/iomgr/ios/CFStreamTests/build_and_run_tests.sh @@ -23,28 +23,42 @@ cd "$(dirname "$0")" XCODEBUILD_FILTER_OUTPUT_SCRIPT="../../../../../src/objective-c/tests/xcodebuild_filter_output.sh" +XCODEBUILD_FLAGS=" + IPHONEOS_DEPLOYMENT_TARGET=9.0 +" + +XCODEBUILD_DESTINATION="platform=iOS Simulator,name=iPhone 11" + time ./build_tests.sh time xcodebuild \ -workspace CFStreamTests.xcworkspace \ -scheme CFStreamTests \ - -destination name="iPhone 8" \ - test | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" + -destination "${XCODEBUILD_DESTINATION}" \ + test \ + "${XCODEBUILD_FLAGS}" \ + | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" time xcodebuild \ -workspace CFStreamTests.xcworkspace \ -scheme CFStreamTests_Asan \ - -destination name="iPhone 8" \ - test | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" + -destination "${XCODEBUILD_DESTINATION}" \ + test \ + "${XCODEBUILD_FLAGS}" \ + | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" time xcodebuild \ -workspace CFStreamTests.xcworkspace \ -scheme CFStreamTests_Tsan \ - -destination name="iPhone 8" \ - test | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" + -destination "${XCODEBUILD_DESTINATION}" \ + test \ + "${XCODEBUILD_FLAGS}" \ + | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" time xcodebuild \ -workspace CFStreamTests.xcworkspace \ -scheme CFStreamTests_Msan \ - -destination name="iPhone 8" \ - test | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" + -destination "${XCODEBUILD_DESTINATION}" \ + test \ + "${XCODEBUILD_FLAGS}" \ + | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}" diff --git a/test/cpp/ios/build_and_run_tests.sh b/test/cpp/ios/build_and_run_tests.sh index d7a000e9fd6fd..891e088cd03c9 100755 --- a/test/cpp/ios/build_and_run_tests.sh +++ b/test/cpp/ios/build_and_run_tests.sh @@ -29,10 +29,12 @@ XCODEBUILD_FLAGS=" IPHONEOS_DEPLOYMENT_TARGET=9.0 " +XCODEBUILD_DESTINATION="platform=iOS Simulator,name=iPhone 11" + time xcodebuild \ -workspace Tests.xcworkspace \ -scheme CronetTests \ - -destination name="iPhone X" \ + -destination "${XCODEBUILD_DESTINATION}" \ test \ "${XCODEBUILD_FLAGS}" \ | "${XCODEBUILD_FILTER_OUTPUT_SCRIPT}"