OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
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 # Prints a path to Valgrind binaries to be used for Chromium. | 7 # Prints a path to Valgrind binaries to be used for Chromium. |
8 # Select the valgrind from third_party/valgrind by default, | 8 # Select the valgrind from third_party/valgrind by default, |
9 # but allow users to override this default without editing scripts and | 9 # but allow users to override this default without editing scripts and |
10 # without specifying a commandline option | 10 # without specifying a commandline option |
11 | 11 |
12 export THISDIR=`dirname $0` | 12 export THISDIR=`dirname $0` |
13 | 13 |
14 # User may use his own valgrind by giving its path with CHROME_VALGRIND env. | 14 # User may use their own valgrind by giving its path with CHROME_VALGRIND env. |
15 if [ "$CHROME_VALGRIND" = "" ] | 15 if [ "$CHROME_VALGRIND" = "" ] |
16 then | 16 then |
17 # Guess which binaries we should use by uname | 17 # Guess which binaries we should use by uname |
18 case "$(uname -a)" in | 18 case "$(uname -a)" in |
19 *Linux*x86_64*) | 19 *Linux*x86_64*) |
20 PLATFORM="linux_x64" | 20 PLATFORM="linux_x64" |
21 ;; | 21 ;; |
22 *Linux*86*) | 22 *Linux*86*) |
23 PLATFORM="linux_x86" | 23 PLATFORM="linux_x86" |
24 ;; | 24 ;; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 if ! test -x $CHROME_VALGRIND/bin/valgrind | 60 if ! test -x $CHROME_VALGRIND/bin/valgrind |
61 then | 61 then |
62 echo "Oops, could not find Valgrind binaries in your checkout." >&2 | 62 echo "Oops, could not find Valgrind binaries in your checkout." >&2 |
63 echo "Please see" >&2 | 63 echo "Please see" >&2 |
64 echo " http://dev.chromium.org/developers/how-tos/using-valgrind/get-valgrind
" >&2 | 64 echo " http://dev.chromium.org/developers/how-tos/using-valgrind/get-valgrind
" >&2 |
65 echo "for the instructions on how to download pre-built binaries." >&2 | 65 echo "for the instructions on how to download pre-built binaries." >&2 |
66 exit 1 | 66 exit 1 |
67 fi | 67 fi |
68 | 68 |
69 echo $CHROME_VALGRIND | 69 echo $CHROME_VALGRIND |
OLD | NEW |