Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 @setlocal | |
|
scottmg
2016/03/17 23:25:34
Normally
@echo off
setlocal
brucedawson
2016/03/17 23:31:39
Won't that have the effect of turning off echo for
| |
| 1 @echo off | 2 @echo off |
| 2 :: Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 :: 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 :: Use of this source code is governed by a BSD-style license that can be |
| 4 :: found in the LICENSE file. | 5 :: found in the LICENSE file. |
| 5 | 6 |
| 6 :: TODO(timurrrr): batch files 'export' all the variables to the parent shell | 7 :: TODO(timurrrr): batch files 'export' all the variables to the parent shell |
| 7 set THISDIR=%~dp0 | 8 set THISDIR=%~dp0 |
| 8 set TOOL_NAME="unknown" | 9 set TOOL_NAME="unknown" |
| 9 | 10 |
| 10 :: Get the tool name and put it into TOOL_NAME {{{1 | 11 :: Get the tool name and put it into TOOL_NAME {{{1 |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 25 :: }}} | 26 :: }}} |
| 26 if "%TOOL_NAME%" == "drmemory" GOTO :SETUP_DRMEMORY | 27 if "%TOOL_NAME%" == "drmemory" GOTO :SETUP_DRMEMORY |
| 27 if "%TOOL_NAME%" == "drmemory_light" GOTO :SETUP_DRMEMORY | 28 if "%TOOL_NAME%" == "drmemory_light" GOTO :SETUP_DRMEMORY |
| 28 if "%TOOL_NAME%" == "drmemory_full" GOTO :SETUP_DRMEMORY | 29 if "%TOOL_NAME%" == "drmemory_full" GOTO :SETUP_DRMEMORY |
| 29 if "%TOOL_NAME%" == "drmemory_pattern" GOTO :SETUP_DRMEMORY | 30 if "%TOOL_NAME%" == "drmemory_pattern" GOTO :SETUP_DRMEMORY |
| 30 if "%TOOL_NAME%" == "tsan" GOTO :SETUP_TSAN | 31 if "%TOOL_NAME%" == "tsan" GOTO :SETUP_TSAN |
| 31 echo "Unknown tool: `%TOOL_NAME%`! Only tsan and drmemory are supported right no w" | 32 echo "Unknown tool: `%TOOL_NAME%`! Only tsan and drmemory are supported right no w" |
| 32 exit /B 1 | 33 exit /B 1 |
| 33 | 34 |
| 34 :SETUP_DRMEMORY | 35 :SETUP_DRMEMORY |
| 35 if NOT "%DRMEMORY_COMMAND%"=="" GOTO :RUN_TESTS | |
| 36 :: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1 | 36 :: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1 |
| 37 set DRMEMORY_PATH=%THISDIR%..\..\third_party\drmemory | 37 set DRMEMORY_PATH=%THISDIR%..\..\third_party\drmemory |
| 38 set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe | 38 set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe |
| 39 if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK | 39 if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK |
| 40 echo "Can't find Dr. Memory executables." | 40 echo "Can't find Dr. Memory executables." |
| 41 echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory" | 41 echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory" |
| 42 echo "for the instructions on how to get them." | 42 echo "for the instructions on how to get them." |
| 43 exit /B 1 | 43 exit /B 1 |
| 44 | 44 |
| 45 :DRMEMORY_BINARY_OK | 45 :DRMEMORY_BINARY_OK |
| (...skipping 15 matching lines...) Expand all Loading... | |
| 61 :TSAN_BINARY_OK | 61 :TSAN_BINARY_OK |
| 62 %TSAN_SFX% -o%TSAN_PATH%\unpacked -y | 62 %TSAN_SFX% -o%TSAN_PATH%\unpacked -y |
| 63 set PIN_COMMAND=%TSAN_PATH%\unpacked\tsan-x86-windows\tsan.bat | 63 set PIN_COMMAND=%TSAN_PATH%\unpacked\tsan-x86-windows\tsan.bat |
| 64 :: }}} | 64 :: }}} |
| 65 goto :RUN_TESTS | 65 goto :RUN_TESTS |
| 66 | 66 |
| 67 :RUN_TESTS | 67 :RUN_TESTS |
| 68 set PYTHONPATH=%THISDIR%../python/google | 68 set PYTHONPATH=%THISDIR%../python/google |
| 69 set RUNNING_ON_VALGRIND=yes | 69 set RUNNING_ON_VALGRIND=yes |
| 70 python %THISDIR%/chrome_tests.py %* | 70 python %THISDIR%/chrome_tests.py %* |
| OLD | NEW |