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 6set THISDIR=%~dp0 7set TOOL_NAME="drmemory_full" 8 9:: Set up DRMEMORY_COMMAND to invoke Dr. Memory {{{1 10set DRMEMORY_PATH=%THISDIR%.. 11set DRMEMORY_SFX=%DRMEMORY_PATH%\drmemory-windows-sfx.exe 12if EXIST %DRMEMORY_SFX% GOTO DRMEMORY_BINARY_OK 13echo "Can't find Dr. Memory executables." 14echo "See http://www.chromium.org/developers/how-tos/using-valgrind/dr-memory" 15echo "for the instructions on how to get them." 16exit /B 1 17 18:DRMEMORY_BINARY_OK 19%DRMEMORY_SFX% -o%DRMEMORY_PATH%\unpacked -y 20set DRMEMORY_COMMAND=%DRMEMORY_PATH%\unpacked\bin\drmemory.exe 21:: }}} 22 23:RUN_TESTS 24python %THISDIR%/pdfium_tests.py %* 25