1#!/bin/bash 2# Copyright 2018 gRPC authors. 3# 4# Licensed under the Apache License, Version 2.0 (the "License"); 5# you may not use this file except in compliance with the License. 6# You may obtain a copy of the License at 7# 8# http://www.apache.org/licenses/LICENSE-2.0 9# 10# Unless required by applicable law or agreed to in writing, software 11# distributed under the License is distributed on an "AS IS" BASIS, 12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13# See the License for the specific language governing permissions and 14# limitations under the License. 15 16# Don't run this script standalone. Instead, run from the repository root: 17# ./tools/run_tests/run_tests.py -l objc 18 19set -ev 20 21cd "$(dirname "$0")" 22 23echo "TIME: $(date)" 24 25XCODEBUILD_FILTER='(^CompileC |^Ld |^ *[^ ]*clang |^ *cd |^ *export |^Libtool |^ *[^ ]*libtool |^CpHeader |^ *builtin-copy )' 26 27xcodebuild \ 28 -workspace CFStreamTests.xcworkspace \ 29 -scheme CFStreamTests \ 30 -destination name="iPhone 8" \ 31 test \ 32 | egrep -v "$XCODEBUILD_FILTER" \ 33 | egrep -v '^$' \ 34 | egrep -v "(GPBDictionary|GPBArray)" - 35 36echo "TIME: $(date)" 37 38xcodebuild \ 39 -workspace CFStreamTests.xcworkspace \ 40 -scheme CFStreamTests_Asan \ 41 -destination name="iPhone 8" \ 42 test \ 43 | egrep -v "$XCODEBUILD_FILTER" \ 44 | egrep -v '^$' \ 45 | egrep -v "(GPBDictionary|GPBArray)" - 46 47echo "TIME: $(date)" 48 49xcodebuild \ 50 -workspace CFStreamTests.xcworkspace \ 51 -scheme CFStreamTests_Tsan \ 52 -destination name="iPhone 8" \ 53 test \ 54 | egrep -v "$XCODEBUILD_FILTER" \ 55 | egrep -v '^$' \ 56 | egrep -v "(GPBDictionary|GPBArray)" - 57 58echo "TIME: $(date)" 59 60xcodebuild \ 61 -workspace CFStreamTests.xcworkspace \ 62 -scheme CFStreamTests_Msan \ 63 -destination name="iPhone 8" \ 64 test \ 65 | egrep -v "$XCODEBUILD_FILTER" \ 66 | egrep -v '^$' \ 67 | egrep -v "(GPBDictionary|GPBArray)" - 68