OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
3 # Copyright (c) 2009 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2009 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 | 10 |
11 CHROME_VALGRIND=`sh $THISDIR/locate_valgrind.sh` | 11 CHROME_VALGRIND=`sh $THISDIR/locate_valgrind.sh` |
12 if [ "$CHROME_VALGRIND" = "" ] | 12 if [ "$CHROME_VALGRIND" = "" ] |
13 then | 13 then |
14 # locate_valgrind.sh failed | 14 # locate_valgrind.sh failed |
15 exit 1 | 15 exit 1 |
16 fi | 16 fi |
17 echo "Using valgrind binaries from ${CHROME_VALGRIND}" | 17 echo "Using valgrind binaries from ${CHROME_VALGRIND}" |
18 | 18 |
19 PATH="${CHROME_VALGRIND}/bin:$PATH" | 19 PATH="${CHROME_VALGRIND}/bin:$PATH" |
20 # We need to set these variables to override default lib paths hard-coded into | 20 # We need to set these variables to override default lib paths hard-coded into |
21 # Valgrind binary. | 21 # Valgrind binary. |
22 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind" | 22 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind" |
23 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind" | 23 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind" |
24 | 24 |
25 PYTHONPATH=$THISDIR/../python "$THISDIR/chrome_tests.py" "$@" | 25 PYTHONPATH=$THISDIR/../python/google "$THISDIR/chrome_tests.py" "$@" |
OLD | NEW |