diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-28 15:20:06 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-11-28 15:20:06 +0000 |
commit | 23b8a3ca4a6f95b5f9e8fd9ae0553ad141b8e991 (patch) | |
tree | d0b92ceb1f62766fa86c327beff57343a59b698b /chrome_frame | |
parent | b5c2429b2bf3c106e76f8fc537c8ceb6732207ea (diff) | |
download | chromium_src-23b8a3ca4a6f95b5f9e8fd9ae0553ad141b8e991.zip chromium_src-23b8a3ca4a6f95b5f9e8fd9ae0553ad141b8e991.tar.gz chromium_src-23b8a3ca4a6f95b5f9e8fd9ae0553ad141b8e991.tar.bz2 |
Update poor man's trybot script.
It will now work with new paths, build/Debug etc.
An addition of a couple of optional parameters allows for both push
and pull modes of operation, i.e. the script may be run on either the
VM or the dev machine.
BUG=none
Review URL: http://codereview.chromium.org/8706001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111700 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/test/poor_mans_trybot.bat | 31 |
1 files changed, 20 insertions, 11 deletions
diff --git a/chrome_frame/test/poor_mans_trybot.bat b/chrome_frame/test/poor_mans_trybot.bat index c856b3c..846d807 100644 --- a/chrome_frame/test/poor_mans_trybot.bat +++ b/chrome_frame/test/poor_mans_trybot.bat @@ -38,19 +38,29 @@ setlocal set CLIENT_ROOT=%~dp0%..\.. set CONFIG=%1 +if (%2)==() goto setdefaultbase +if (%3)==() goto usage +set DRIVE=%2 +set INSTALL_ROOT=%3 +goto pastbase +:setdefault +set DRIVE=c: +set INSTALL_ROOT=\trybot +:pastbase + @ECHO ON -c: -mkdir \trybot -cd \trybot +%DRIVE% +mkdir %INSTALL_ROOT% +cd %INSTALL_ROOT% rmdir /s /q base -rmdir /s /q chrome\%CONFIG% +rmdir /s /q build\%CONFIG% rmdir /s /q chrome_frame mkdir base -mkdir chrome\%CONFIG% +mkdir build\%CONFIG% mkdir chrome_frame\test\data mkdir chrome_frame\test\html_util_test_data copy %CLIENT_ROOT%\base\base_paths_win.cc base\base_paths_win.cc -xcopy %CLIENT_ROOT%\chrome\%CONFIG% chrome\%CONFIG% /E /EXCLUDE:%CLIENT_ROOT%\chrome_frame\test\poor_mans_trybot_xcopy_filter.txt +xcopy %CLIENT_ROOT%\build\%CONFIG% build\%CONFIG% /E /EXCLUDE:%CLIENT_ROOT%\chrome_frame\test\poor_mans_trybot_xcopy_filter.txt xcopy %CLIENT_ROOT%\chrome_frame\test\data chrome_frame\test\data /E xcopy %CLIENT_ROOT%\chrome_frame\test\html_util_test_data chrome_frame\test\html_util_test_data /E copy %CLIENT_ROOT%\chrome_frame\CFInstance.js chrome_frame\CFInstance.js @@ -59,16 +69,15 @@ copy %CLIENT_ROOT%\chrome_frame\CFInstall.js chrome_frame\CFInstall.js echo ************************************ echo DO THE FOLLOWING IN AN ADMIN PROMPT: echo ************************************ -echo regsvr32 \trybot\chrome\%CONFIG%\servers\npchrome_frame.dll -echo rundll32 \trybot\chrome\debug\servers\npchrome_frame.dll,RegisterNPAPIPlugin +echo regsvr32 \trybot\build\%CONFIG%\servers\npchrome_frame.dll echo ********************************* echo THEN DO THIS IN A REGULAR PROMPT: echo ********************************* -echo \trybot\chrome\%CONFIG%\chrome_frame_unittests.exe -echo \trybot\chrome\%CONFIG%\chrome_frame_tests.exe +echo \trybot\build\%CONFIG%\chrome_frame_unittests.exe +echo \trybot\build\%CONFIG%\chrome_frame_tests.exe goto end :usage -echo "Usage: poor_mans_trybot.bat [debug|release]" +echo "Usage: poor_mans_trybot.bat CONFIG [DRIVE INSTALL_ROOT]" :end |