Skip to content
Snippets Groups Projects
Commit ea9d8b67 authored by Muxi Yan's avatar Muxi Yan
Browse files

Display time between tests for troubleshooting timeout

parent 0ce55c0e
No related branches found
No related tags found
No related merge requests found
...@@ -35,29 +35,38 @@ set -evo pipefail ...@@ -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 ...@@ -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 ...@@ -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 \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment