aboutsummaryrefslogtreecommitdiffhomepage
path: root/platform_tools/ios/bin/ios_run_skia
diff options
context:
space:
mode:
authorGravatar stephana <stephana@chromium.org>2015-04-21 08:31:59 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-04-21 08:31:59 -0700
commitcdec56e72b2dbb3fd15b77ed7ec949322ae731b8 (patch)
tree7db63c10f9c2c7e6fada7b2c37c5e67bd7ab099d /platform_tools/ios/bin/ios_run_skia
parenta4a0aeb74808a0860f3e94588d0ceb0da9fed386 (diff)
Landing directly for testing the ios buildbot code.
BUG=skia: TBR=borenet Review URL: https://codereview.chromium.org/1087653005
Diffstat (limited to 'platform_tools/ios/bin/ios_run_skia')
-rwxr-xr-xplatform_tools/ios/bin/ios_run_skia26
1 files changed, 26 insertions, 0 deletions
diff --git a/platform_tools/ios/bin/ios_run_skia b/platform_tools/ios/bin/ios_run_skia
new file mode 100755
index 0000000000..bdeaece9d7
--- /dev/null
+++ b/platform_tools/ios/bin/ios_run_skia
@@ -0,0 +1,26 @@
+#!/bin/bash
+###############################################################################
+# Copyright 2015 Google Inc.
+#
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+###############################################################################
+#
+# ios_run_skia: starts the correct skia program on the device, prints the
+# output, and kills the app if interrupted.
+
+SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+source $SCRIPT_DIR/ios_setup.sh
+
+# (Re-)Install the app to create the necessary directories.
+ios_uninstall_app
+ios_install_app
+
+# Move the resources to the Documents forlder of the iOS device.
+# Note: The iOSShell app expects 'resources' in the Documents folder.
+ios_push "${SKIA_SRC_DIR}/resources" ""
+
+# Run the application.
+ios-deploy -I -m -b "$SKIA_SRC_DIR/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app --args '""$ARGS""'"
+
+#ios-deploy -I -m -b "$SKIA_SRC_DIR/xcodebuild/${BUILDTYPE}-iphoneos/iOSShell.app --args '""$ARGS""'-v --writePath results --dm --nogpu --threads 0 --src gm tests --config 8888 --match ~Threaded ~Math ~VarAlloc'