Changeset 54635 in webkit
- Timestamp:
- Feb 10, 2010 5:50:45 PM (14 years ago)
- Location:
- trunk/WebKitTools
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/WebKitTools/ChangeLog
r54634 r54635 1 2010-02-10 Dirk Pranke <dpranke@chromium.org> 2 3 Reviewed by Eric Seidel. 4 5 Fix various minor bugs keeping run-chromium-webkit-tests from actually 6 working on the linux and win ports of Chromium. 7 8 https://bugs.webkit.org/show_bug.cgi?id=34739 9 10 * Scripts/webkitpy/layout_tests/layout_package/test_shell_thread.py: 11 * Scripts/webkitpy/layout_tests/port/__init__.py: 12 * Scripts/webkitpy/layout_tests/port/base.py: 13 * Scripts/webkitpy/layout_tests/port/chromium.py: 14 * Scripts/webkitpy/layout_tests/port/chromium_linux.py: 15 * Scripts/webkitpy/layout_tests/port/chromium_win.py: 16 * Scripts/webkitpy/layout_tests/port/http_server.py: 17 * Scripts/webkitpy/layout_tests/port/websocket_server.py: 18 1 19 2010-02-10 Eric Seidel <eric@webkit.org> 2 20 -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/layout_package/test_shell_thread.py
r54449 r54635 87 87 port.maybe_make_directory(os.path.split(filename)[0]) 88 88 open(filename, "wb").write(error) 89 el se:89 elif error: 90 90 logging.debug("Previous test output extra lines after dump:\n%s" % 91 91 error) -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/__init__.py
r54452 r54635 31 31 32 32 33 import sys 34 35 33 36 def get(port_name=None, options=None): 34 37 """Returns an object implementing the Port interface. If … … 37 40 port_to_use = port_name 38 41 if port_to_use is None: 39 port_to_use = 'chromium-mac' 42 if sys.platform == 'win32': 43 port_to_use = 'chromium-win' 44 elif sys.platform == 'linux2': 45 port_to_use = 'chromium-linux' 46 elif sys.platform == 'darwin': 47 port_to_use = 'chromium-mac' 40 48 41 49 if port_to_use == 'test': … … 51 59 import chromium_linux 52 60 return chromium_linux.ChromiumLinuxPort(port_name, options) 53 elif port_to_use.start with('chromium-win'):61 elif port_to_use.startswith('chromium-win'): 54 62 import chromium_win 55 63 return chromium_win.ChromiumWinPort(port_name, options) 56 64 57 raise NotImplementedError('unsupported port: %s' % port_ name)65 raise NotImplementedError('unsupported port: %s' % port_to_use) -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/base.py
r54634 r54635 106 106 except ValueError: 107 107 # work around a race condition in Python 2.4's implementation 108 # of subprocess.Popen 108 # of subprocess.Popen. See http://bugs.python.org/issue1199282 . 109 109 pass 110 110 return result … … 486 486 # http://bugs.python.org/issue1236 487 487 if _wdiff_available: 488 wdiff = subprocess.Popen(cmd, 489 stdout=subprocess.PIPE).communicate()[0] 488 try: 489 wdiff = subprocess.Popen(cmd, 490 stdout=subprocess.PIPE).communicate()[0] 491 except ValueError, e: 492 # Working around a race in Python 2.4's implementation 493 # of Popen(). 494 wdiff = '' 490 495 wdiff = cgi.escape(wdiff) 491 496 wdiff = wdiff.replace('##WDIFF_DEL##', '<span class=del>') -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium.py
r54449 r54635 32 32 import logging 33 33 import os 34 import shutil 34 35 import signal 35 36 import subprocess -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_linux.py
r54449 r54635 48 48 def baseline_search_path(self): 49 49 return [self.baseline_path(), 50 self. chromium_baseline_path('chromium-win'),51 self. webkit_baseline_path('win'),52 self. webkit_baseline_path('mac')]50 self._chromium_baseline_path('chromium-win'), 51 self._webkit_baseline_path('win'), 52 self._webkit_baseline_path('mac')] 53 53 54 54 def check_sys_deps(self): … … 75 75 76 76 def _build_path(self, *comps): 77 return self.path_from_chromium_base('sconsbuild', self._options.target, 78 *comps) 77 base = self.path_from_chromium_base() 78 if os.path.exists(os.path.join(base, 'sconsbuild')): 79 return self.path_from_chromium_base('sconsbuild', 80 self._options.target, *comps) 81 else: 82 return self.path_from_chromium_base('out', 83 self._options.target, *comps) 79 84 80 85 def _kill_process(self, pid): -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/chromium_win.py
r54449 r54635 34 34 import signal 35 35 import subprocess 36 import sys 36 37 37 38 import chromium … … 47 48 48 49 def baseline_search_path(self): 50 dirs = [] 49 51 if self._name == 'chromium-win-xp': 50 dirs.append(self. baseline_path(self._name))52 dirs.append(self._chromium_baseline_path(self._name)) 51 53 if self._name in ('chromium-win-xp', 'chromium-win-vista'): 52 dirs.append(self. baseline_path('chromium-win-vista'))53 dirs.append(self. baseline_path('chromium-win'))54 dirs.append(self. webkit_baseline_path('win'))55 dirs.append(self. webkit_baseline_path('mac'))54 dirs.append(self._chromium_baseline_path('chromium-win-vista')) 55 dirs.append(self._chromium_baseline_path('chromium-win')) 56 dirs.append(self._webkit_baseline_path('win')) 57 dirs.append(self._webkit_baseline_path('mac')) 56 58 return dirs 57 59 … … 63 65 """Return the absolute path in unix format for the given filename.""" 64 66 abspath = os.path.abspath(filename) 65 return path.replace('\\', '/')67 return abspath.replace('\\', '/') 66 68 67 69 def num_cores(self): 68 70 return int(os.environ.get('NUMBER_OF_PROCESSORS', 1)) 71 72 def relative_test_filename(self, filename): 73 path = filename[len(self.layout_tests_dir()) + 1:] 74 return path.replace('\\', '/') 69 75 70 76 def test_platform_name(self): … … 114 120 115 121 def _path_to_lighttpd(self): 116 return self._lighttp _path('LightTPD.exe')122 return self._lighttpd_path('LightTPD.exe') 117 123 118 124 def _path_to_lighttpd_modules(self): 119 return self._lighttp _path('lib')125 return self._lighttpd_path('lib') 120 126 121 127 def _path_to_lighttpd_php(self): 122 return self._lighttp _path('php5', 'php-cgi.exe')128 return self._lighttpd_path('php5', 'php-cgi.exe') 123 129 124 130 def _path_to_driver(self): … … 129 135 130 136 def _path_to_image_diff(self): 131 return self._build_path(' layout_test_helper.exe')137 return self._build_path('image_diff.exe') 132 138 133 139 def _path_to_wdiff(self): -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/http_server.py
r54449 r54635 67 67 68 68 try: 69 _webkit_tests = os.path.join(self._port_obj.layout_tests_dir(),70 'http', 'tests')71 _webkit_tests = os.path.join(self._port_obj.layout_tests_dir(),72 'fast', 'js', 'resources')69 self._webkit_tests = os.path.join( 70 self._port_obj.layout_tests_dir(), 'http', 'tests') 71 self._js_test_resource = os.path.join( 72 self._port_obj.layout_tests_dir(), 'fast', 'js', 'resources') 73 73 except: 74 _webkit_tests = None75 _js_test_resource = None74 self._webkit_tests = None 75 self._js_test_resource = None 76 76 77 77 # Self generated certificate for SSL server (for client cert get … … 81 81 82 82 # One mapping where we can get to everything 83 VIRTUALCONFIG = []84 85 if _webkit_tests:86 VIRTUALCONFIG.extend(83 self.VIRTUALCONFIG = [] 84 85 if self._webkit_tests: 86 self.VIRTUALCONFIG.extend( 87 87 # Three mappings (one with SSL) for LayoutTests http tests 88 [{'port': 8000, 'docroot': _webkit_tests},89 {'port': 8080, 'docroot': _webkit_tests},90 {'port': 8443, 'docroot': _webkit_tests,88 [{'port': 8000, 'docroot': self._webkit_tests}, 89 {'port': 8080, 'docroot': self._webkit_tests}, 90 {'port': 8443, 'docroot': self._webkit_tests, 91 91 'sslcert': self._pem_file}]) 92 92 … … 98 98 raise 'Lighttpd already running' 99 99 100 base_conf_file = self._port_obj.path_from_base('third_party', 101 'WebKitTools', 'Scripts', 'webkitpy', 'layout_tests', 102 'port', 'lighttpd.conf') 100 base_conf_file = self._port_obj.path_from_webkit_base('WebKitTools', 101 'Scripts', 'webkitpy', 'layout_tests', 'port', 'lighttpd.conf') 103 102 out_conf_file = os.path.join(self._output_dir, 'lighttpd.conf') 104 103 time_str = time.strftime("%d%b%Y-%H%M%S") … … 175 174 start_cmd = [executable, 176 175 # Newly written config file 177 '-f', self._port_obj._path_from_base(self._output_dir, 178 'lighttpd.conf'), 176 '-f', os.path.join(self._output_dir, 'lighttpd.conf'), 179 177 # Where it can find its module dynamic libraries 180 178 '-m', module_path] … … 198 196 if sys.platform in ('cygwin', 'win32'): 199 197 env['PATH'] = '%s;%s' % ( 200 port.path_from_base('third_party', 'cygwin', 'bin'), 198 self._port_obj.path_from_chromium_base('third_party', 199 'cygwin', 'bin'), 201 200 env['PATH']) 202 201 203 202 if sys.platform == 'win32' and self._register_cygwin: 204 setup_mount = port.path_from_ base('third_party', 'cygwin',205 203 setup_mount = port.path_from_chromium_base('third_party', 204 'cygwin', 'setup_mount.bat') 206 205 subprocess.Popen(setup_mount).wait() 207 206 … … 230 229 if self._process: 231 230 httpd_pid = self._process.pid 232 port._shut_down_http_server(httpd_pid)231 self._port_obj._shut_down_http_server(httpd_pid) 233 232 234 233 if self._process: -
trunk/WebKitTools/Scripts/webkitpy/layout_tests/port/websocket_server.py
r54449 r54635 180 180 if sys.platform in ('cygwin', 'win32'): 181 181 env['PATH'] = '%s;%s' % ( 182 self._port_obj._path_from_base('third_party', 'cygwin', 'bin'), 182 self._port_obj.path_from_chromium_base('third_party', 183 'cygwin', 'bin'), 183 184 env['PATH']) 184 185 185 186 if sys.platform == 'win32' and self._register_cygwin: 186 setup_mount = self._port_obj. _path_from_base('third_party',187 'cygwin', 'setup_mount.bat')187 setup_mount = self._port_obj.path_from_chromium_base( 188 'third_party', 'cygwin', 'setup_mount.bat') 188 189 subprocess.Popen(setup_mount).wait() 189 190
Note: See TracChangeset
for help on using the changeset viewer.