Merge pull request #10357 from muxi/timestamp-objc-tests

Display time between objc tests
pull/10393/head
Muxi Yan 8 years ago committed by GitHub
commit e0af6b4ce8
  1. 9
      src/objective-c/tests/build_example_test.sh
  2. 1
      src/objective-c/tests/build_tests.sh
  3. 6
      src/objective-c/tests/run_tests.sh

@ -35,29 +35,38 @@ set -evo pipefail
cd `dirname $0` cd `dirname $0`
trap 'echo "EXIT TIME: $(date)"' EXIT
echo "TIME: $(date)"
SCHEME=HelloWorld \ SCHEME=HelloWorld \
EXAMPLE_PATH=examples/objective-c/helloworld \ EXAMPLE_PATH=examples/objective-c/helloworld \
./build_one_example.sh ./build_one_example.sh
echo "TIME: $(date)"
SCHEME=RouteGuideClient \ SCHEME=RouteGuideClient \
EXAMPLE_PATH=examples/objective-c/route_guide \ EXAMPLE_PATH=examples/objective-c/route_guide \
./build_one_example.sh ./build_one_example.sh
echo "TIME: $(date)"
SCHEME=AuthSample \ SCHEME=AuthSample \
EXAMPLE_PATH=examples/objective-c/auth_sample \ EXAMPLE_PATH=examples/objective-c/auth_sample \
./build_one_example.sh ./build_one_example.sh
rm -f ../examples/RemoteTestClient/*.{h,m} rm -f ../examples/RemoteTestClient/*.{h,m}
echo "TIME: $(date)"
SCHEME=Sample \ SCHEME=Sample \
EXAMPLE_PATH=src/objective-c/examples/Sample \ EXAMPLE_PATH=src/objective-c/examples/Sample \
./build_one_example.sh ./build_one_example.sh
echo "TIME: $(date)"
SCHEME=Sample \ SCHEME=Sample \
EXAMPLE_PATH=src/objective-c/examples/Sample \ EXAMPLE_PATH=src/objective-c/examples/Sample \
FRAMEWORKS=YES \ FRAMEWORKS=YES \
./build_one_example.sh ./build_one_example.sh
echo "TIME: $(date)"
SCHEME=SwiftSample \ SCHEME=SwiftSample \
EXAMPLE_PATH=src/objective-c/examples/SwiftSample \ EXAMPLE_PATH=src/objective-c/examples/SwiftSample \
./build_one_example.sh ./build_one_example.sh

@ -50,4 +50,5 @@ rm -rf Tests.xcworkspace
rm -f Podfile.lock rm -f Podfile.lock
rm -f RemoteTestClient/*.{h,m} rm -f RemoteTestClient/*.{h,m}
echo "TIME: $(date)"
pod install pod install

@ -47,31 +47,35 @@ BINDIR=../../../bins/$CONFIG
$BINDIR/interop_server --port=5050 --max_send_message_size=8388608 & $BINDIR/interop_server --port=5050 --max_send_message_size=8388608 &
$BINDIR/interop_server --port=5051 --max_send_message_size=8388608 --use_tls & $BINDIR/interop_server --port=5051 --max_send_message_size=8388608 --use_tls &
# Kill them when this script exits. # Kill them when this script exits.
trap 'kill -9 `jobs -p`' EXIT trap 'kill -9 `jobs -p` ; echo "EXIT TIME: $(date)"' EXIT
# xcodebuild is very verbose. We filter its output and tell Bash to fail if any # xcodebuild is very verbose. We filter its output and tell Bash to fail if any
# element of the pipe fails. # element of the pipe fails.
# TODO(jcanizales): Use xctool instead? Issue #2540. # TODO(jcanizales): Use xctool instead? Issue #2540.
set -o pipefail set -o pipefail
XCODEBUILD_FILTER='(^===|^\*\*|\bfatal\b|\berror\b|\bwarning\b|\bfail)' XCODEBUILD_FILTER='(^===|^\*\*|\bfatal\b|\berror\b|\bwarning\b|\bfail)'
echo "TIME: $(date)"
xcodebuild \ xcodebuild \
-workspace Tests.xcworkspace \ -workspace Tests.xcworkspace \
-scheme AllTests \ -scheme AllTests \
-destination name="iPhone 6" \ -destination name="iPhone 6" \
test | xcpretty test | xcpretty
echo "TIME: $(date)"
xcodebuild \ xcodebuild \
-workspace Tests.xcworkspace \ -workspace Tests.xcworkspace \
-scheme CoreCronetEnd2EndTests \ -scheme CoreCronetEnd2EndTests \
-destination name="iPhone 6" \ -destination name="iPhone 6" \
test | xcpretty test | xcpretty
echo "TIME: $(date)"
xcodebuild \ xcodebuild \
-workspace Tests.xcworkspace \ -workspace Tests.xcworkspace \
-scheme CronetUnitTests \ -scheme CronetUnitTests \
-destination name="iPhone 6" \ -destination name="iPhone 6" \
test | xcpretty test | xcpretty
echo "TIME: $(date)"
xcodebuild \ xcodebuild \
-workspace Tests.xcworkspace \ -workspace Tests.xcworkspace \
-scheme InteropTestsRemoteWithCronet \ -scheme InteropTestsRemoteWithCronet \

Loading…
Cancel
Save