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

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

Issue 22866018: valgrind: Fix running webkit-tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | tools/valgrind/valgrind_test.py » ('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/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
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
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
OLDNEW
« no previous file with comments | « no previous file | tools/valgrind/valgrind_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698