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

Side by Side Diff: tools_webrtc/valgrind/webrtc_tests.sh

Issue 2864213004: Rename tools-webrtc -> tools_webrtc (Closed)
Patch Set: REmove symlink Created 3 years, 7 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_webrtc/valgrind/webrtc_tests.py ('k') | tools_webrtc/video_quality_toolchain/README » ('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) 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
11 # Set up some paths and re-direct the arguments to webrtc_tests.py 11 # Set up some paths and re-direct the arguments to webrtc_tests.py
12 12
13 # This script is a copy of the chrome_tests.sh wrapper script with the following 13 # This script is a copy of the chrome_tests.sh wrapper script with the following
14 # changes: 14 # changes:
15 # - The locate_valgrind.sh of Chromium's Valgrind scripts dir is used to locate 15 # - The locate_valgrind.sh of Chromium's Valgrind scripts dir is used to locate
16 # the Valgrind framework install. If it fails a fallback path is used instead 16 # the Valgrind framework install. If it fails a fallback path is used instead
17 # (../../chromium/src/third_party/valgrind/linux_x64) and a warning message 17 # (../../chromium/src/third_party/valgrind/linux_x64) and a warning message
18 # is showed by |show_locate_valgrind_failed_warning|. 18 # is showed by |show_locate_valgrind_failed_warning|.
19 # - webrtc_tests.py is invoked instead of chrome_tests.py. 19 # - webrtc_tests.py is invoked instead of chrome_tests.py.
20 # - Chromium's Valgrind scripts directory is added to the PYTHONPATH to make it 20 # - Chromium's Valgrind scripts directory is added to the PYTHONPATH to make it
21 # possible to execute the Python scripts properly. 21 # possible to execute the Python scripts properly.
22 22
23 export THISDIR=`dirname $0` 23 export THISDIR=`dirname $0`
24 ARGV_COPY="$@" 24 ARGV_COPY="$@"
25 25
26 # We need to set CHROME_VALGRIND iff using Memcheck: 26 # We need to set CHROME_VALGRIND iff using Memcheck:
27 # tools-webrtc/valgrind/webrtc_tests.sh --tool memcheck 27 # tools_webrtc/valgrind/webrtc_tests.sh --tool memcheck
28 # or 28 # or
29 # tools-webrtc/valgrind/webrtc_tests.sh --tool=memcheck 29 # tools_webrtc/valgrind/webrtc_tests.sh --tool=memcheck
30 tool="memcheck" # Default to memcheck. 30 tool="memcheck" # Default to memcheck.
31 while (( "$#" )) 31 while (( "$#" ))
32 do 32 do
33 if [[ "$1" == "--tool" ]] 33 if [[ "$1" == "--tool" ]]
34 then 34 then
35 tool="$2" 35 tool="$2"
36 shift 36 shift
37 elif [[ "$1" =~ --tool=(.*) ]] 37 elif [[ "$1" =~ --tool=(.*) ]]
38 then 38 then
39 tool="${BASH_REMATCH[1]}" 39 tool="${BASH_REMATCH[1]}"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « tools_webrtc/valgrind/webrtc_tests.py ('k') | tools_webrtc/video_quality_toolchain/README » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698