Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(602)

Side by Side Diff: tools/valgrind/chrome_tests.sh

Issue 174372: Add license information to our shell scripts. (Closed)
Patch Set: Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/valgrind/build-valgrind-for-chromium.sh ('k') | tools/valgrind/shard-all-tests.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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" "$@"
OLDNEW
« no previous file with comments | « tools/valgrind/build-valgrind-for-chromium.sh ('k') | tools/valgrind/shard-all-tests.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698