OLD | NEW |
1 #!/bin/sh | 1 #!/bin/sh |
| 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 |
2 # Script to run layout tests under valgrind | 7 # Script to run layout tests under valgrind |
3 # Example: | 8 # Example: |
4 # sh $0 LayoutTests/fast | 9 # sh $0 LayoutTests/fast |
5 # Caveats: | 10 # Caveats: |
6 # More of an example than a universal script. | 11 # More of an example than a universal script. |
7 # Must be run from src directory. | 12 # Must be run from src directory. |
8 # Uses our standard suppressions; edit | 13 # Uses our standard suppressions; edit |
9 # tools/valgrind/memcheck/suppressions.txt | 14 # tools/valgrind/memcheck/suppressions.txt |
10 # to disable any for bugs you're trying to reproduce. | 15 # to disable any for bugs you're trying to reproduce. |
11 | 16 |
(...skipping 15 matching lines...) Expand all Loading... |
27 do | 32 do |
28 ndone=`grep -l "LEAK SUMMARY" vlayout-*.log | wc -l` | 33 ndone=`grep -l "LEAK SUMMARY" vlayout-*.log | wc -l` |
29 if test $nfiles = $ndone | 34 if test $nfiles = $ndone |
30 then | 35 then |
31 break | 36 break |
32 fi | 37 fi |
33 echo "Waiting for valgrind to finish..." | 38 echo "Waiting for valgrind to finish..." |
34 sleep 1 | 39 sleep 1 |
35 done | 40 done |
36 cat vlayout-*.log | 41 cat vlayout-*.log |
OLD | NEW |