OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 | 2 |
3 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 3 # Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. |
4 # | 4 # |
5 # Use of this source code is governed by a BSD-style license | 5 # Use of this source code is governed by a BSD-style license |
6 # that can be found in the LICENSE file in the root of the source | 6 # that can be found in the LICENSE file in the root of the source |
7 # tree. An additional intellectual property rights grant can be found | 7 # tree. An additional intellectual property rights grant can be found |
8 # in the file PATENTS. All contributing project authors may | 8 # in the file PATENTS. All contributing project authors may |
9 # be found in the AUTHORS file in the root of the source tree. | 9 # be found in the AUTHORS file in the root of the source tree. |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 NEEDS_VALGRIND=1 | 48 NEEDS_VALGRIND=1 |
49 ;; | 49 ;; |
50 esac | 50 esac |
51 | 51 |
52 # For WebRTC, we'll use the locate_valgrind.sh script in Chromium's Valgrind | 52 # For WebRTC, we'll use the locate_valgrind.sh script in Chromium's Valgrind |
53 # scripts dir to locate the Valgrind framework install | 53 # scripts dir to locate the Valgrind framework install |
54 CHROME_VALGRIND_SCRIPTS=$THISDIR/../../tools/valgrind | 54 CHROME_VALGRIND_SCRIPTS=$THISDIR/../../tools/valgrind |
55 | 55 |
56 if [ "$NEEDS_VALGRIND" == "1" ] | 56 if [ "$NEEDS_VALGRIND" == "1" ] |
57 then | 57 then |
58 CHROME_VALGRIND=`sh $CHROME_VALGRIND_SCRIPTS/locate_valgrind.sh` | 58 CHROME_VALGRIND=`sh $THISDIR/locate_valgrind.sh` |
59 if [ "$CHROME_VALGRIND" = "" ] | 59 if [ "$CHROME_VALGRIND" = "" ] |
60 then | 60 then |
61 CHROME_VALGRIND=../../src/third_party/valgrind/linux_x64 | 61 CHROME_VALGRIND=../../src/third_party/valgrind/linux_x64 |
62 echo | 62 echo |
63 echo "-------------------- WARNING ------------------------" | 63 echo "-------------------- WARNING ------------------------" |
64 echo "locate_valgrind.sh failed." | 64 echo "locate_valgrind.sh failed." |
65 echo "Using $CHROME_VALGRIND as a fallback location." | 65 echo "Using $CHROME_VALGRIND as a fallback location." |
66 echo "This might be because:" | 66 echo "This might be because:" |
67 echo "1) This is a swarming bot" | 67 echo "1) This is a swarming bot" |
68 echo "2) You haven't set up the valgrind binaries correctly." | 68 echo "2) You haven't set up the valgrind binaries correctly." |
(...skipping 24 matching lines...) Expand all Loading... |
93 echo "Cleanup /tmp from Valgrind stuff" | 93 echo "Cleanup /tmp from Valgrind stuff" |
94 find /tmp -maxdepth 1 \(\ | 94 find /tmp -maxdepth 1 \(\ |
95 -name "vgdb-pipe-*" -or -name "vg_logs_*" -or -name "valgrind.*" \ | 95 -name "vgdb-pipe-*" -or -name "vg_logs_*" -or -name "valgrind.*" \ |
96 \) -mtime +1 -print0 | xargs -0 rm -rf | 96 \) -mtime +1 -print0 | xargs -0 rm -rf |
97 fi | 97 fi |
98 | 98 |
99 # Add Chrome's Valgrind scripts dir to the PYTHON_PATH since it contains | 99 # Add Chrome's Valgrind scripts dir to the PYTHON_PATH since it contains |
100 # the scripts that are needed for this script to run | 100 # the scripts that are needed for this script to run |
101 PYTHONPATH=$THISDIR/../../tools/python/google:$CHROME_VALGRIND_SCRIPTS python \ | 101 PYTHONPATH=$THISDIR/../../tools/python/google:$CHROME_VALGRIND_SCRIPTS python \ |
102 "$THISDIR/webrtc_tests.py" $ARGV_COPY | 102 "$THISDIR/webrtc_tests.py" $ARGV_COPY |
OLD | NEW |