OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 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 up some paths and re-direct the arguments to chrome_tests.py | 7 # Set up some paths and re-direct the arguments to chrome_tests.py |
8 | 8 |
9 export THISDIR=`dirname $0` | 9 export THISDIR=`dirname $0` |
10 ARGV_COPY="$@" | 10 ARGV_COPY="$@" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 | 55 |
56 PATH="${CHROME_VALGRIND}/bin:$PATH" | 56 PATH="${CHROME_VALGRIND}/bin:$PATH" |
57 # We need to set these variables to override default lib paths hard-coded into | 57 # We need to set these variables to override default lib paths hard-coded into |
58 # Valgrind binary. | 58 # Valgrind binary. |
59 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind" | 59 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind" |
60 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind" | 60 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind" |
61 fi | 61 fi |
62 | 62 |
63 if [ "$NEEDS_DRMEMORY" == "1" ] | 63 if [ "$NEEDS_DRMEMORY" == "1" ] |
64 then | 64 then |
65 export DRMEMORY_PATH=$THISDIR/../../third_party/drmemory | 65 if [ -z "$DRMEMORY_COMMAND" ] |
66 export DRMEMORY_SFX=$DRMEMORY_PATH/drmemory-windows-sfx.exe | |
67 if [ ! -f "$DRMEMORY_SFX" ] | |
68 then | 66 then |
69 echo "Can't find Dr. Memory executables." | 67 DRMEMORY_PATH="$THISDIR/../../third_party/drmemory" |
70 echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memor
y" | 68 DRMEMORY_SFX="$DRMEMORY_PATH/drmemory-windows-sfx.exe" |
71 echo "for the instructions on how to get them." | 69 if [ ! -f "$DRMEMORY_SFX" ] |
72 exit 1 | 70 then |
| 71 echo "Can't find Dr. Memory executables." |
| 72 echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-mem
ory" |
| 73 echo "for the instructions on how to get them." |
| 74 exit 1 |
| 75 fi |
| 76 |
| 77 chmod +x "$DRMEMORY_SFX" # Cygwin won't run it without +x. |
| 78 "$DRMEMORY_SFX" -o"$DRMEMORY_PATH/unpacked" -y |
| 79 export DRMEMORY_COMMAND="$DRMEMORY_PATH/unpacked/bin/drmemory.exe" |
73 fi | 80 fi |
74 | |
75 chmod +x "$DRMEMORY_SFX" # Cygwin won't run it without +x. | |
76 "$DRMEMORY_SFX" -o"$DRMEMORY_PATH/unpacked" -y | |
77 export DRMEMORY_COMMAND=$DRMEMORY_PATH/unpacked/bin/drmemory.exe | |
78 fi | 81 fi |
79 | 82 |
80 PYTHONPATH=$THISDIR/../python/google python \ | 83 PYTHONPATH=$THISDIR/../python/google python \ |
81 "$THISDIR/chrome_tests.py" $ARGV_COPY | 84 "$THISDIR/chrome_tests.py" $ARGV_COPY |
OLD | NEW |