webrtc_m130/tools_webrtc/valgrind/chrome_tests.bat

54 lines
1.6 KiB
Batchfile
Raw Normal View History

Roll chromium_revision b032878ebd..e438353b8b (480186:480311) 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: https://chromium.googlesource.com/chromium/src/+log/b032878ebd..e438353b8b Full diff: https://chromium.googlesource.com/chromium/src/+/b032878ebd..e438353b8b Changed dependencies: * src/base: https://chromium.googlesource.com/chromium/src/base/+log/cfcc86588b..12890c2e86 * src/build: https://chromium.googlesource.com/chromium/src/build/+log/da7ab41c0b..9ec24027ab * src/ios: https://chromium.googlesource.com/chromium/src/ios/+log/6a7a3c369e..50158a755d * src/testing: https://chromium.googlesource.com/chromium/src/testing/+log/3e351800c5..1f3a1393a1 * src/third_party: https://chromium.googlesource.com/chromium/src/third_party/+log/541ca472e8..733d9dc5c9 * src/third_party/catapult: https://chromium.googlesource.com/external/github.com/catapult-project/catapult.git/+log/e9dc4c57fb..57e600c76c * src/third_party/gtest-parallel: https://chromium.googlesource.com/external/github.com/google/gtest-parallel/+log/6fb62e80ac..4bf9c03d93 * src/tools: https://chromium.googlesource.com/chromium/src/tools/+log/bf99adb051..919bf71aa0 DEPS diff: https://chromium.googlesource.com/chromium/src/+/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}
2017-06-18 13:21:21 -07:00
@echo off
:: Copyright (c) 2011 The Chromium Authors. All rights reserved.
:: Use of this source code is governed by a BSD-style license that can be
:: found in the LICENSE file.
setlocal
set THISDIR=%~dp0
set TOOL_NAME="unknown"
:: Get the tool name and put it into TOOL_NAME {{{1
:: NB: SHIFT command doesn't modify %*
:PARSE_ARGS_LOOP
if %1 == () GOTO:TOOLNAME_NOT_FOUND
if %1 == --tool GOTO:TOOLNAME_FOUND
SHIFT
goto :PARSE_ARGS_LOOP
:TOOLNAME_NOT_FOUND
echo "Please specify a tool (e.g. drmemory) by using --tool flag"
exit /B 1
:TOOLNAME_FOUND
SHIFT
set TOOL_NAME=%1
:: }}}
if "%TOOL_NAME%" == "drmemory" GOTO :SETUP_DRMEMORY
if "%TOOL_NAME%" == "drmemory_light" GOTO :SETUP_DRMEMORY
if "%TOOL_NAME%" == "drmemory_full" GOTO :SETUP_DRMEMORY
if "%TOOL_NAME%" == "drmemory_pattern" GOTO :SETUP_DRMEMORY
echo "Unknown tool: `%TOOL_NAME%`! Only drmemory is supported right now"
exit /B 1
:SETUP_DRMEMORY
:: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1
set DRMEMORY_PATH=%THISDIR%..\..\third_party\drmemory
set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe
if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK
echo "Can't find Dr. Memory executables."
echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory"
echo "for the instructions on how to get them."
exit /B 1
:DRMEMORY_BINARY_OK
%DRMEMORY_SFX% -o%DRMEMORY_PATH%\unpacked -y
set DRMEMORY_COMMAND=%DRMEMORY_PATH%\unpacked\bin\drmemory.exe
:: }}}
goto :RUN_TESTS
:RUN_TESTS
set PYTHONPATH=%THISDIR%../python/google
set RUNNING_ON_VALGRIND=yes
python %THISDIR%/chrome_tests.py %*