OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
2 | 2 |
| 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 |
| 5 # found in the LICENSE file. |
| 6 |
3 # Select the valgrind built by build-valgrind-for-chromium.sh by default, | 7 # Select the valgrind built by build-valgrind-for-chromium.sh by default, |
4 # but allow users to override this default without editing scripts and | 8 # but allow users to override this default without editing scripts and |
5 # without specifying a commandline option | 9 # without specifying a commandline option |
6 | 10 |
7 if test x"$CHROME_VALGRIND_BIN" = x | 11 if test x"$CHROME_VALGRIND_BIN" = x |
8 then | 12 then |
9 # Figure out which valgrind is installed. Use most recent one. | 13 # Figure out which valgrind is installed. Use most recent one. |
10 # See build-valgrind-for-chromium.sh and its history for these constants. | 14 # See build-valgrind-for-chromium.sh and its history for these constants. |
11 for SVNREV in '10771' '{2009-07-15}' | 15 for SVNREV in '10771' '{2009-07-15}' |
12 do | 16 do |
13 SHORTSVNREV=`echo $SVNREV | tr -d '{\-}'` | 17 SHORTSVNREV=`echo $SVNREV | tr -d '{\-}'` |
14 CHROME_VALGRIND_BIN=/usr/local/valgrind-$SHORTSVNREV/bin | 18 CHROME_VALGRIND_BIN=/usr/local/valgrind-$SHORTSVNREV/bin |
15 test -x $CHROME_VALGRIND_BIN/valgrind && break | 19 test -x $CHROME_VALGRIND_BIN/valgrind && break |
16 done | 20 done |
17 fi | 21 fi |
18 | 22 |
19 if ! test -x $CHROME_VALGRIND_BIN/valgrind | 23 if ! test -x $CHROME_VALGRIND_BIN/valgrind |
20 then | 24 then |
21 echo "Could not find chromium's version of valgrind." | 25 echo "Could not find chromium's version of valgrind." |
22 echo "Please run build-valgrind-for-chromium.sh or set CHROME_VALGRIND_BIN." | 26 echo "Please run build-valgrind-for-chromium.sh or set CHROME_VALGRIND_BIN." |
23 exit 1 | 27 exit 1 |
24 fi | 28 fi |
25 PATH="${CHROME_VALGRIND_BIN}:$PATH" | 29 PATH="${CHROME_VALGRIND_BIN}:$PATH" |
26 | 30 |
27 export THISDIR=`dirname $0` | 31 export THISDIR=`dirname $0` |
28 PYTHONPATH=$THISDIR/../../webkit/tools/layout_tests/:$THISDIR/../purify:$THISDIR
/../python "$THISDIR/chrome_tests.py" "$@" | 32 PYTHONPATH=$THISDIR/../../webkit/tools/layout_tests/:$THISDIR/../purify:$THISDIR
/../python "$THISDIR/chrome_tests.py" "$@" |
OLD | NEW |