Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: Tools/Scripts/webkitpy/layout_tests/port/win.py

Issue 1294603002: Add run-webkit-tests support and generate baselines for win8 and win10. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: remove 64 bit versions references Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (C) 2010 Google Inc. All rights reserved. 1 # Copyright (C) 2010 Google Inc. All rights reserved.
2 # 2 #
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following disclaimer 10 # copyright notice, this list of conditions and the following disclaimer
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 from webkitpy.layout_tests.port import base 43 from webkitpy.layout_tests.port import base
44 from webkitpy.layout_tests.servers import crash_service 44 from webkitpy.layout_tests.servers import crash_service
45 45
46 46
47 _log = logging.getLogger(__name__) 47 _log = logging.getLogger(__name__)
48 48
49 49
50 class WinPort(base.Port): 50 class WinPort(base.Port):
51 port_name = 'win' 51 port_name = 'win'
52 52
53 # FIXME: Figure out how to unify this with base.TestConfiguration.all_system s()? 53 SUPPORTED_VERSIONS = ('xp', 'win7', 'win8', 'win10')
54 SUPPORTED_VERSIONS = ('xp', 'win7')
55 54
56 FALLBACK_PATHS = { 'win7': [ 'win' ]} 55 FALLBACK_PATHS = {'win10': ['win']}
56 FALLBACK_PATHS['win8'] = ['win8'] + FALLBACK_PATHS['win10']
57 FALLBACK_PATHS['win7'] = ['win7'] + FALLBACK_PATHS['win8']
57 FALLBACK_PATHS['xp'] = ['win-xp'] + FALLBACK_PATHS['win7'] 58 FALLBACK_PATHS['xp'] = ['win-xp'] + FALLBACK_PATHS['win7']
58 59
59 DEFAULT_BUILD_DIRECTORIES = ('build', 'out') 60 DEFAULT_BUILD_DIRECTORIES = ('build', 'out')
60 61
61 BUILD_REQUIREMENTS_URL = 'http://www.chromium.org/developers/how-tos/build-i nstructions-windows' 62 BUILD_REQUIREMENTS_URL = 'http://www.chromium.org/developers/how-tos/build-i nstructions-windows'
62 63
63 @classmethod 64 @classmethod
64 def determine_full_port_name(cls, host, options, port_name): 65 def determine_full_port_name(cls, host, options, port_name):
65 if port_name.endswith('win'): 66 if port_name.endswith('win'):
66 assert host.platform.is_win() 67 assert host.platform.is_win()
67 # We don't maintain separate baselines for vista, so we pretend it i s win7. 68 # We don't maintain separate baselines for vista, so we pretend it i s win7.
68 if host.platform.os_version in ('vista', '7sp0', '7sp1', 'future'): 69 if host.platform.os_version in ('vista', '7sp0', '7sp1'):
69 version = 'win7' 70 version = 'win7'
71 elif host.platform.os_version in ('8', '8.1'):
72 version = 'win8'
73 elif host.platform.os_version in ('10', 'future'):
74 version = 'win10'
70 else: 75 else:
71 version = host.platform.os_version 76 version = host.platform.os_version
72 port_name = port_name + '-' + version 77 port_name = port_name + '-' + version
73 return port_name 78 return port_name
74 79
75 def __init__(self, host, port_name, **kwargs): 80 def __init__(self, host, port_name, **kwargs):
76 super(WinPort, self).__init__(host, port_name, **kwargs) 81 super(WinPort, self).__init__(host, port_name, **kwargs)
77 self._version = port_name[port_name.index('win-') + len('win-'):] 82 self._version = port_name[port_name.index('win-') + len('win-'):]
78 assert self._version in self.SUPPORTED_VERSIONS, "%s is not in %s" % (se lf._version, self.SUPPORTED_VERSIONS) 83 assert self._version in self.SUPPORTED_VERSIONS, "%s is not in %s" % (se lf._version, self.SUPPORTED_VERSIONS)
79 if self.get_option('disable_breakpad'): 84 if self.get_option('disable_breakpad'):
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 return result 244 return result
240 245
241 def look_for_new_crash_logs(self, crashed_processes, start_time): 246 def look_for_new_crash_logs(self, crashed_processes, start_time):
242 if self.get_option('disable_breakpad'): 247 if self.get_option('disable_breakpad'):
243 return None 248 return None
244 return self._dump_reader.look_for_new_crash_logs(crashed_processes, star t_time) 249 return self._dump_reader.look_for_new_crash_logs(crashed_processes, star t_time)
245 250
246 def clobber_old_port_specific_results(self): 251 def clobber_old_port_specific_results(self):
247 if not self.get_option('disable_breakpad'): 252 if not self.get_option('disable_breakpad'):
248 self._dump_reader.clobber_old_results() 253 self._dump_reader.clobber_old_results()
OLDNEW
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/port/port_testcase.py ('k') | Tools/Scripts/webkitpy/layout_tests/port/win_unittest.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698