2 REM Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 REM Use of this source code is governed by a BSD-style license that can be
4 REM found in the LICENSE file.
6 REM Purpose of this file: If you have IE9 on your machine, not all of
7 REM the Chrome Frame tests will currently pass. To run the tests on
8 REM a VM or separate machine, you need to copy a bunch of things over
9 REM (the tests run slowly or flakily over a network drive).
11 REM To facilitate running the tests on a separate machine, Run this
12 REM batch file on a VM or a separate machine, that has a drive mapped
13 REM to your dev machine (so that it can access your dev workspace).
15 REM Before running this file, you need to build all the chrome_frame
16 REM targets plus chrome.dll and chrome.exe on your dev machine. Run
17 REM the copy of this file that exists in the same workspace that you
20 REM NOTE: I've seen cases where a Vista VM under Virtual PC will fail
21 REM to copy all of the files from the dev machine, and doing e.g.
22 REM [ dir j:\src\chrome\src\chrome\debug ] (assuming j:\src\chrome\src
23 REM is your workspace on the dev machine) shows an empty filing listing
24 REM when run from the VM, whereas your workspace actually just built
25 REM a ton of stuff in that directory. Just be aware of it, and check
26 REM what files you actually have in the local copy on the VM after
27 REM running this script. If you encounter this issue, a reboot of the
30 REM ALSO NOTE: At least one test
31 REM (ChromeFrameTestWithWebServer.FullTabModeIE_TestPostReissue) fails
32 REM until you choose "never show again" in the "did you notice the
33 REM infobar" dialog that IE shows, at least if you're running IE7.
35 if (%1)==() goto usage
38 set CLIENT_ROOT=%~dp0%..\..
41 if (%2)==() goto setdefault
42 if (%3)==() goto usage
48 set INSTALL_ROOT=\trybot
56 rmdir /s /q build\%CONFIG%
57 rmdir /s /q chrome_frame
60 mkdir chrome_frame\test\data
61 mkdir chrome_frame\test\html_util_test_data
63 mkdir net\tools\testserver
64 mkdir third_party\pyftpdlib
65 mkdir third_party\pylib
66 mkdir third_party\python_26
67 mkdir third_party\tlslite
68 copy %CLIENT_ROOT%\base\base_paths_win.cc base\base_paths_win.cc
69 xcopy %CLIENT_ROOT%\build\%CONFIG% build\%CONFIG% /E /EXCLUDE:%CLIENT_ROOT%\chrome_frame\test\poor_mans_trybot_xcopy_filter.txt
70 xcopy %CLIENT_ROOT%\chrome_frame\test\data chrome_frame\test\data /E
71 xcopy %CLIENT_ROOT%\net\data net\data /E
72 xcopy %CLIENT_ROOT%\net\tools\testserver net\tools\testserver /E
73 xcopy %CLIENT_ROOT%\third_party\pyftpdlib third_party\pyftpdlib /E
74 xcopy %CLIENT_ROOT%\third_party\pylib third_party\pylib /E
75 xcopy %CLIENT_ROOT%\third_party\python_26 third_party\python_26 /E
76 xcopy %CLIENT_ROOT%\third_party\tlslite third_party\tlslite /E
77 xcopy %CLIENT_ROOT%\chrome_frame\test\html_util_test_data chrome_frame\test\html_util_test_data /E
78 copy %CLIENT_ROOT%\chrome_frame\CFInstance.js chrome_frame\CFInstance.js
79 copy %CLIENT_ROOT%\chrome_frame\CFInstall.js chrome_frame\CFInstall.js
81 echo ************************************
82 echo DO THE FOLLOWING IN AN ADMIN PROMPT:
83 echo *********************************
84 echo %DRIVE%%INSTALL_ROOT%\build\%CONFIG%\chrome_frame_unittests.exe
85 echo %DRIVE%%INSTALL_ROOT%\build\%CONFIG%\chrome_frame_tests.exe
86 echo %DRIVE%%INSTALL_ROOT%\build\%CONFIG%\chrome_frame_net_tests.exe
90 echo "Usage: poor_mans_trybot.bat CONFIG [DRIVE INSTALL_ROOT]"