Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: testing/gtest_ios/run-unittest.sh

Issue 14373011: Update the path to iossim in the script run by Xcode to launch tests on simulator. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash -p 1 #!/bin/bash -p
2 2
3 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 3 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
4 # Use of this source code is governed by a BSD-style license that can be 4 # Use of this source code is governed by a BSD-style license that can be
5 # found in the LICENSE file. 5 # found in the LICENSE file.
6 6
7 set -eu 7 set -eu
8 8
9 # Environment sanitization. Set a known-safe PATH. Clear environment variables 9 # Environment sanitization. Set a known-safe PATH. Clear environment variables
10 # that might impact the interpreter's operation. The |bash -p| invocation 10 # that might impact the interpreter's operation. The |bash -p| invocation
11 # on the #! line takes the bite out of BASH_ENV, ENV, and SHELLOPTS (among 11 # on the #! line takes the bite out of BASH_ENV, ENV, and SHELLOPTS (among
12 # other features), but clearing them here ensures that they won't impact any 12 # other features), but clearing them here ensures that they won't impact any
13 # shell scripts used as utility programs. SHELLOPTS is read-only and can't be 13 # shell scripts used as utility programs. SHELLOPTS is read-only and can't be
14 # unset, only unexported. 14 # unset, only unexported.
15 export PATH="/usr/bin:/bin:/usr/sbin:/sbin" 15 export PATH="/usr/bin:/bin:/usr/sbin:/sbin"
16 unset BASH_ENV CDPATH ENV GLOBIGNORE IFS POSIXLY_CORRECT 16 unset BASH_ENV CDPATH ENV GLOBIGNORE IFS POSIXLY_CORRECT
17 export -n SHELLOPTS 17 export -n SHELLOPTS
18 18
19 readonly ScriptDir=$(dirname "$(echo ${0} | sed -e "s,^\([^/]\),$(pwd)/\1,")") 19 readonly ScriptDir=$(dirname "$(echo ${0} | sed -e "s,^\([^/]\),$(pwd)/\1,")")
20 readonly ScriptName=$(basename "${0}") 20 readonly ScriptName=$(basename "${0}")
21 readonly ThisScript="${ScriptDir}/${ScriptName}" 21 readonly ThisScript="${ScriptDir}/${ScriptName}"
22 readonly SimExecutable="${BUILD_DIR}/${CONFIGURATION}/iossim" 22 readonly SimExecutable="${BUILD_DIR}/ninja-iossim/${CONFIGURATION}/iossim"
TVL 2013/04/25 13:06:51 I guess there is no way to detect this? :(
23 23
24 # Helper to print a line formatted for Xcodes build output parser. 24 # Helper to print a line formatted for Xcodes build output parser.
25 XcodeNote() { 25 XcodeNote() {
26 echo "${ThisScript}:${1}: note: ${2}" 26 echo "${ThisScript}:${1}: note: ${2}"
27 } 27 }
28 28
29 # Helper to print a divider to make things stick out in a busy output window. 29 # Helper to print a divider to make things stick out in a busy output window.
30 XcodeHeader() { 30 XcodeHeader() {
31 echo "note: _________________________________________________________________" 31 echo "note: _________________________________________________________________"
32 echo "note: _________________________________________________________________" 32 echo "note: _________________________________________________________________"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 else 78 else
79 if [[ "$#" -gt 0 ]]; then 79 if [[ "$#" -gt 0 ]]; then
80 RunTests "${@}" 80 RunTests "${@}"
81 else 81 else
82 RunTests 82 RunTests
83 fi 83 fi
84 KillSimulator 84 KillSimulator
85 fi 85 fi
86 86
87 exit 0 87 exit 0
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698