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

Side by Side Diff: tools_webrtc/valgrind/chrome_tests.bat

Issue 2945753002: Roll chromium_revision b032878ebd..e438353b8b (480186:480311) (Closed)
Patch Set: Updated .gni Created 3 years, 6 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 | « DEPS ('k') | tools_webrtc/valgrind/chrome_tests.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 @echo off
2 :: Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 :: Use of this source code is governed by a BSD-style license that can be
4 :: found in the LICENSE file.
5
6 setlocal
7
8 set THISDIR=%~dp0
9 set TOOL_NAME="unknown"
10
11 :: Get the tool name and put it into TOOL_NAME {{{1
12 :: NB: SHIFT command doesn't modify %*
13 :PARSE_ARGS_LOOP
14 if %1 == () GOTO:TOOLNAME_NOT_FOUND
15 if %1 == --tool GOTO:TOOLNAME_FOUND
16 SHIFT
17 goto :PARSE_ARGS_LOOP
18
19 :TOOLNAME_NOT_FOUND
20 echo "Please specify a tool (e.g. drmemory) by using --tool flag"
21 exit /B 1
22
23 :TOOLNAME_FOUND
24 SHIFT
25 set TOOL_NAME=%1
26 :: }}}
27 if "%TOOL_NAME%" == "drmemory" GOTO :SETUP_DRMEMORY
28 if "%TOOL_NAME%" == "drmemory_light" GOTO :SETUP_DRMEMORY
29 if "%TOOL_NAME%" == "drmemory_full" GOTO :SETUP_DRMEMORY
30 if "%TOOL_NAME%" == "drmemory_pattern" GOTO :SETUP_DRMEMORY
31 echo "Unknown tool: `%TOOL_NAME%`! Only drmemory is supported right now"
32 exit /B 1
33
34 :SETUP_DRMEMORY
35 :: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1
36 set DRMEMORY_PATH=%THISDIR%..\..\third_party\drmemory
37 set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe
38 if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK
39 echo "Can't find Dr. Memory executables."
40 echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory"
41 echo "for the instructions on how to get them."
42 exit /B 1
43
44 :DRMEMORY_BINARY_OK
45 %DRMEMORY_SFX% -o%DRMEMORY_PATH%\unpacked -y
46 set DRMEMORY_COMMAND=%DRMEMORY_PATH%\unpacked\bin\drmemory.exe
47 :: }}}
48 goto :RUN_TESTS
49
50 :RUN_TESTS
51 set PYTHONPATH=%THISDIR%../python/google
52 set RUNNING_ON_VALGRIND=yes
53 python %THISDIR%/chrome_tests.py %*
OLDNEW
« no previous file with comments | « DEPS ('k') | tools_webrtc/valgrind/chrome_tests.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698