Copy Valgrind scripts from Chromium's tools/ to unblock rolling: valgrind/chrome_tests.bat valgrind/chrome_tests.py valgrind/chrome_tests.sh valgrind/common.py valgrind/gdb_helper.py valgrind/locate_valgrind.sh valgrind/memcheck_analyze.py valgrind/valgrind.gni valgrind/valgrind.sh valgrind/valgrind_test.py valgrind_test.py was stripped of its Mac and Dr Memory specific parts, which we don't use. There's still more cleanup to do, tracked in bugs.webrc.org/7849. Change log:b032878ebd..e438353b8bFull diff:b032878ebd..e438353b8bChanged dependencies: * src/base:cfcc86588b..12890c2e86* src/build:da7ab41c0b..9ec24027ab* src/ios:6a7a3c369e..50158a755d* src/testing:3e351800c5..1f3a1393a1* src/third_party:541ca472e8..733d9dc5c9* src/third_party/catapult:e9dc4c57fb..57e600c76c* src/third_party/gtest-parallel:6fb62e80ac..4bf9c03d93* src/tools:bf99adb051..919bf71aa0DEPS diff:b032878ebd..e438353b8b/DEPS No update to Clang. TBR=ehmaldonado@webrtc.org BUG=webrtc:7849 NOTRY=True Review-Url: https://codereview.webrtc.org/2945753002 Cr-Commit-Position: refs/heads/master@{#18650}
74 lines
2.1 KiB
Bash
Executable File
74 lines
2.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2017 The WebRTC project authors. All Rights Reserved.
|
|
#
|
|
# Use of this source code is governed by a BSD-style license
|
|
# that can be found in the LICENSE file in the root of the source
|
|
# tree. An additional intellectual property rights grant can be found
|
|
# in the file PATENTS. All contributing project authors may
|
|
# be found in the AUTHORS file in the root of the source tree.
|
|
|
|
# Prints a path to Valgrind binaries to be used for Chromium.
|
|
# Select the valgrind from third_party/valgrind by default,
|
|
# but allow users to override this default without editing scripts and
|
|
# without specifying a commandline option
|
|
|
|
export THISDIR=`dirname $0`
|
|
|
|
# User may use their own valgrind by giving its path with CHROME_VALGRIND env.
|
|
if [ "$CHROME_VALGRIND" = "" ]
|
|
then
|
|
# Guess which binaries we should use by uname
|
|
case "$(uname -a)" in
|
|
*Linux*x86_64*)
|
|
PLATFORM="linux_x64"
|
|
;;
|
|
*Linux*86*)
|
|
PLATFORM="linux_x86"
|
|
;;
|
|
*Darwin*9.[678].[01]*i386*)
|
|
# Didn't test other kernels.
|
|
PLATFORM="mac"
|
|
;;
|
|
*Darwin*10.[0-9].[0-9]*i386*)
|
|
PLATFORM="mac_10.6"
|
|
;;
|
|
*Darwin*10.[0-9].[0-9]*x86_64*)
|
|
PLATFORM="mac_10.6"
|
|
;;
|
|
*Darwin*11.[0-9].[0-9]*x86_64*)
|
|
PLATFORM="mac_10.7"
|
|
;;
|
|
*)
|
|
(echo "Sorry, your platform is not supported:" &&
|
|
uname -a
|
|
echo
|
|
echo "If you're on Mac OS X, please see http://crbug.com/441425") >&2
|
|
exit 42
|
|
esac
|
|
|
|
# The binaries should be in third_party/valgrind
|
|
# (checked out from deps/third_party/valgrind/binaries).
|
|
CHROME_VALGRIND="$THISDIR/../../third_party/valgrind/$PLATFORM"
|
|
|
|
# TODO(timurrrr): readlink -f is not present on Mac...
|
|
if [ "$PLATFORM" != "mac" ] && \
|
|
[ "$PLATFORM" != "mac_10.6" ] && \
|
|
[ "$PLATFORM" != "mac_10.7" ]
|
|
then
|
|
# Get rid of all "../" dirs
|
|
CHROME_VALGRIND=$(readlink -f $CHROME_VALGRIND)
|
|
fi
|
|
fi
|
|
|
|
if ! test -x $CHROME_VALGRIND/bin/valgrind
|
|
then
|
|
echo "Oops, could not find Valgrind binaries in your checkout." >&2
|
|
echo "Please see" >&2
|
|
echo " http://dev.chromium.org/developers/how-tos/using-valgrind/get-valgrind" >&2
|
|
echo "for the instructions on how to download pre-built binaries." >&2
|
|
exit 1
|
|
fi
|
|
|
|
echo $CHROME_VALGRIND
|