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

Side by Side Diff: tools-webrtc/valgrind/webrtc_tests.sh

Issue 2594363002: Update Valgrind location after we stopped checking out Chromium. (Closed)
Patch Set: Created 3 years, 12 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/valgrind-binaries.gni ('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/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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 $CHROME_VALGRIND_SCRIPTS/locate_valgrind.sh`
59 if [ "$CHROME_VALGRIND" = "" ] 59 if [ "$CHROME_VALGRIND" = "" ]
60 then 60 then
61 CHROME_VALGRIND=../../chromium/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."
69 echo "In this case, please make sure you have followed the instructions at" 69 echo "In this case, please make sure you have followed the instructions at"
70 echo "http://www.chromium.org/developers/how-tos/using-valgrind/get-valgrind " 70 echo "http://www.chromium.org/developers/how-tos/using-valgrind/get-valgrind "
71 echo "Notice: In the .gclient file, you need to add this for the 'src'" 71 echo "Notice: In the .gclient file, you need to add this for the 'src'"
72 echo "solution since our directory structure is different from Chromium's:" 72 echo "solution since our directory structure is different from Chromium's:"
73 echo "\"custom_deps\": {" 73 echo "\"custom_deps\": {"
74 echo " \"src/chromium/src/third_party/valgrind\":" 74 echo " \"src/third_party/valgrind\":"
75 echo " \"https://chromium.googlesource.com/chromium/deps/valgrind/binar ies\"," 75 echo " \"https://chromium.googlesource.com/chromium/deps/valgrind/binar ies\","
76 echo "}," 76 echo "},"
77 echo "-----------------------------------------------------" 77 echo "-----------------------------------------------------"
78 echo 78 echo
79 fi 79 fi
80 echo "Using valgrind binaries from ${CHROME_VALGRIND}" 80 echo "Using valgrind binaries from ${CHROME_VALGRIND}"
81 81
82 PATH="${CHROME_VALGRIND}/bin:$PATH" 82 PATH="${CHROME_VALGRIND}/bin:$PATH"
83 # We need to set these variables to override default lib paths hard-coded into 83 # We need to set these variables to override default lib paths hard-coded into
84 # Valgrind binary. 84 # Valgrind binary.
85 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind" 85 export VALGRIND_LIB="$CHROME_VALGRIND/lib/valgrind"
86 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind" 86 export VALGRIND_LIB_INNER="$CHROME_VALGRIND/lib/valgrind"
87 87
88 # Clean up some /tmp directories that might be stale due to interrupted 88 # Clean up some /tmp directories that might be stale due to interrupted
89 # chrome_tests.py execution. 89 # chrome_tests.py execution.
90 # FYI: 90 # FYI:
91 # -mtime +1 <- only print files modified more than 24h ago, 91 # -mtime +1 <- only print files modified more than 24h ago,
92 # -print0/-0 are needed to handle possible newlines in the filenames. 92 # -print0/-0 are needed to handle possible newlines in the filenames.
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/valgrind-binaries.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698