| 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 # 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 NEEDS_VALGRIND=1 | 43 NEEDS_VALGRIND=1 |
| 44 fi | 44 fi |
| 45 ;; | 45 ;; |
| 46 "drmemory" | "drmemory_light" | "drmemory_full" | "drmemory_pattern") | 46 "drmemory" | "drmemory_light" | "drmemory_full" | "drmemory_pattern") |
| 47 NEEDS_DRMEMORY=1 | 47 NEEDS_DRMEMORY=1 |
| 48 ;; | 48 ;; |
| 49 esac | 49 esac |
| 50 | 50 |
| 51 if [ "$NEEDS_VALGRIND" == "1" ] | 51 if [ "$NEEDS_VALGRIND" == "1" ] |
| 52 then | 52 then |
| 53 CHROME_VALGRIND=`sh $THISDIR/locate_valgrind.sh` | 53 export CHROME_VALGRIND=`sh $THISDIR/locate_valgrind.sh` |
| 54 if [ "$CHROME_VALGRIND" = "" ] | 54 if [ "$CHROME_VALGRIND" = "" ] |
| 55 then | 55 then |
| 56 # locate_valgrind.sh failed | 56 # locate_valgrind.sh failed |
| 57 exit 1 | 57 exit 1 |
| 58 fi | 58 fi |
| 59 echo "Using valgrind binaries from ${CHROME_VALGRIND}" | 59 echo "Using valgrind binaries from ${CHROME_VALGRIND}" |
| 60 | 60 |
| 61 PATH="${CHROME_VALGRIND}/bin:$PATH" | 61 PATH="${CHROME_VALGRIND}/bin:$PATH" |
| 62 # We need to set these variables to override default lib paths hard-coded into | 62 # We need to set these variables to override default lib paths hard-coded into |
| 63 # Valgrind binary. | 63 # Valgrind binary. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 | 113 |
| 114 chmod +x "$TSAN_SFX" # Cygwin won't run it without +x. | 114 chmod +x "$TSAN_SFX" # Cygwin won't run it without +x. |
| 115 "$TSAN_SFX" -o"$TSAN_PATH"/unpacked -y | 115 "$TSAN_SFX" -o"$TSAN_PATH"/unpacked -y |
| 116 export PIN_COMMAND="$TSAN_PATH/unpacked/tsan-x86-windows/tsan.bat" | 116 export PIN_COMMAND="$TSAN_PATH/unpacked/tsan-x86-windows/tsan.bat" |
| 117 fi | 117 fi |
| 118 fi | 118 fi |
| 119 | 119 |
| 120 | 120 |
| 121 PYTHONPATH=$THISDIR/../python/google python \ | 121 PYTHONPATH=$THISDIR/../python/google python \ |
| 122 "$THISDIR/chrome_tests.py" $ARGV_COPY | 122 "$THISDIR/chrome_tests.py" $ARGV_COPY |
| OLD | NEW |