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

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

Issue 4375001: Hotfix Valgrind scripts to use the --show-possibly-lost option... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « tools/valgrind/valgrind_test.py ('k') | no next file » | 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. 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 # Script to run layout tests under valgrind 7 # Script to run layout tests under valgrind
8 # Example: 8 # Example:
9 # sh $0 LayoutTests/fast 9 # sh $0 LayoutTests/fast
10 # Caveats: 10 # Caveats:
(...skipping 20 matching lines...) Expand all
31 echo "Could not find chromium's version of valgrind." 31 echo "Could not find chromium's version of valgrind."
32 echo "Please run build-valgrind-for-chromium.sh or set CHROME_VALGRIND_BIN." 32 echo "Please run build-valgrind-for-chromium.sh or set CHROME_VALGRIND_BIN."
33 echo "Defaulting to system valgrind." 33 echo "Defaulting to system valgrind."
34 else 34 else
35 echo "Using ${CHROME_VALGRIND_BIN}/valgrind." 35 echo "Using ${CHROME_VALGRIND_BIN}/valgrind."
36 PATH="${CHROME_VALGRIND_BIN}:$PATH" 36 PATH="${CHROME_VALGRIND_BIN}:$PATH"
37 fi 37 fi
38 38
39 cat > vlayout-wrapper.sh <<"_EOF_" 39 cat > vlayout-wrapper.sh <<"_EOF_"
40 #!/bin/sh 40 #!/bin/sh
41 valgrind --suppressions=tools/valgrind/memcheck/suppressions.txt --tool=memcheck --smc-check=all --num-callers=30 --trace-children=yes --leak-check=full --show- possible=no --log-file=vlayout-%p.log --gen-suppressions=all --track-origins=yes "$@" 41 valgrind --suppressions=tools/valgrind/memcheck/suppressions.txt --tool=memcheck --smc-check=all --num-callers=30 --trace-children=yes --leak-check=full --show- possibly-lost=no --log-file=vlayout-%p.log --gen-suppressions=all --track-origin s=yes "$@"
42 _EOF_ 42 _EOF_
43 chmod +x vlayout-wrapper.sh 43 chmod +x vlayout-wrapper.sh
44 44
45 rm -f vlayout-*.log 45 rm -f vlayout-*.log
46 export BROWSER_WRAPPER=`pwd`/vlayout-wrapper.sh 46 export BROWSER_WRAPPER=`pwd`/vlayout-wrapper.sh
47 export G_SLICE=always-malloc 47 export G_SLICE=always-malloc
48 export NSS_DISABLE_ARENA_FREE_LIST=1 48 export NSS_DISABLE_ARENA_FREE_LIST=1
49 sh webkit/tools/layout_tests/run_webkit_tests.sh --run-singly -v --noshow-result s --time-out-ms=200000 --nocheck-sys-deps --debug "$@" 49 sh webkit/tools/layout_tests/run_webkit_tests.sh --run-singly -v --noshow-result s --time-out-ms=200000 --nocheck-sys-deps --debug "$@"
50 50
51 # Have to wait a bit for the output files to finish 51 # Have to wait a bit for the output files to finish
52 nfiles=`ls vlayout-*.log | wc -l` 52 nfiles=`ls vlayout-*.log | wc -l`
53 while true 53 while true
54 do 54 do
55 ndone=`egrep -l "LEAK SUMMARY|no leaks are possible" vlayout-*.log | wc -l` 55 ndone=`egrep -l "LEAK SUMMARY|no leaks are possible" vlayout-*.log | wc -l`
56 if test $nfiles = $ndone 56 if test $nfiles = $ndone
57 then 57 then
58 break 58 break
59 fi 59 fi
60 echo "Waiting for valgrind to finish..." 60 echo "Waiting for valgrind to finish..."
61 sleep 1 61 sleep 1
62 done 62 done
63 cat vlayout-*.log 63 cat vlayout-*.log
OLDNEW
« no previous file with comments | « tools/valgrind/valgrind_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698