| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 ############################################################################### | 2 ############################################################################### |
| 3 # Copyright 2015 Google Inc. | 3 # Copyright 2015 Google Inc. |
| 4 # | 4 # |
| 5 # Use of this source code is governed by a BSD-style license that can be | 5 # Use of this source code is governed by a BSD-style license that can be |
| 6 # found in the LICENSE file. | 6 # found in the LICENSE file. |
| 7 ############################################################################### | 7 ############################################################################### |
| 8 # | 8 # |
| 9 # ios_run_skia: starts the correct skia program on the device, prints the | 9 # ios_run_skia: starts the correct skia program on the device, prints the |
| 10 # output, and kills the app if interrupted. | 10 # output, and kills the app if interrupted. |
| 11 | 11 |
| 12 set -x -e |
| 13 |
| 12 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | 14 SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
| 13 source $SCRIPT_DIR/ios_setup.sh | 15 source $SCRIPT_DIR/ios_setup.sh |
| 14 | 16 |
| 15 # (Re-)Install the app to create the necessary directories. | 17 # Run the application. |
| 16 ios_uninstall_app | 18 IOS_DEPLOY_ARGS="${SKIA_SRC_DIR}/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app -
-args \"${*}\"" |
| 17 ios_install_app | 19 CMD="ios-deploy -I -m -b ${IOS_DEPLOY_ARGS}" |
| 18 | 20 eval $CMD |
| 19 # Move the resources to the Documents forlder of the iOS device. | |
| 20 # Note: The iOSShell app expects 'resources' in the Documents folder. | |
| 21 ios_push "${SKIA_SRC_DIR}/resources" "" | |
| 22 | |
| 23 # Run the application. | |
| 24 ios-deploy -I -m -b "$SKIA_SRC_DIR/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app
--args '""$ARGS""'" | |
| 25 | |
| 26 #ios-deploy -I -m -b "$SKIA_SRC_DIR/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.ap
p --args '""$ARGS""'-v --writePath results --dm --nogpu --threads 0 --src gm t
ests --config 8888 --match ~Threaded ~Math ~VarAlloc' | |
| OLD | NEW |