OLD | NEW |
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 18 matching lines...) Expand all Loading... |
29 import logging | 29 import logging |
30 import re | 30 import re |
31 | 31 |
32 from webkitpy.common.webkit_finder import WebKitFinder | 32 from webkitpy.common.webkit_finder import WebKitFinder |
33 from webkitpy.layout_tests.breakpad.dump_reader_multipart import DumpReaderLinux | 33 from webkitpy.layout_tests.breakpad.dump_reader_multipart import DumpReaderLinux |
34 from webkitpy.layout_tests.models import test_run_results | 34 from webkitpy.layout_tests.models import test_run_results |
35 from webkitpy.layout_tests.port import base | 35 from webkitpy.layout_tests.port import base |
36 from webkitpy.layout_tests.port import win | 36 from webkitpy.layout_tests.port import win |
37 from webkitpy.layout_tests.port import config | 37 from webkitpy.layout_tests.port import config |
38 | 38 |
39 | |
40 _log = logging.getLogger(__name__) | 39 _log = logging.getLogger(__name__) |
41 | 40 |
42 | 41 |
43 class LinuxPort(base.Port): | 42 class LinuxPort(base.Port): |
44 port_name = 'linux' | 43 port_name = 'linux' |
45 | 44 |
46 SUPPORTED_VERSIONS = ('precise', 'trusty') | 45 SUPPORTED_VERSIONS = ('precise', 'trusty') |
47 | 46 |
48 FALLBACK_PATHS = {} | 47 FALLBACK_PATHS = {} |
49 FALLBACK_PATHS['trusty'] = ['linux'] + win.WinPort.latest_platform_fallback_
path() | 48 FALLBACK_PATHS['trusty'] = ['linux'] + win.WinPort.latest_platform_fallback_
path() |
50 FALLBACK_PATHS['precise'] = ['linux-precise'] + FALLBACK_PATHS['trusty'] | 49 FALLBACK_PATHS['precise'] = ['linux-precise'] + FALLBACK_PATHS['trusty'] |
51 | 50 |
52 DEFAULT_BUILD_DIRECTORIES = ('out',) | 51 DEFAULT_BUILD_DIRECTORIES = ('out', ) |
53 | 52 |
54 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/linux_build_instructions.md' | 53 BUILD_REQUIREMENTS_URL = 'https://chromium.googlesource.com/chromium/src/+/m
aster/docs/linux_build_instructions.md' |
| 54 |
55 @classmethod | 55 @classmethod |
56 def determine_full_port_name(cls, host, options, port_name): | 56 def determine_full_port_name(cls, host, options, port_name): |
57 if port_name.endswith('linux'): | 57 if port_name.endswith('linux'): |
58 assert host.platform.is_linux() | 58 assert host.platform.is_linux() |
59 version = host.platform.os_version | 59 version = host.platform.os_version |
60 return port_name + '-' + version | 60 return port_name + '-' + version |
61 return port_name | 61 return port_name |
62 | 62 |
63 | |
64 def __init__(self, host, port_name, **kwargs): | 63 def __init__(self, host, port_name, **kwargs): |
65 super(LinuxPort, self).__init__(host, port_name, **kwargs) | 64 super(LinuxPort, self).__init__(host, port_name, **kwargs) |
66 self._version = port_name[port_name.index('linux-') + len('linux-'):] | 65 self._version = port_name[port_name.index('linux-') + len('linux-'):] |
67 self._architecture = "x86_64" | 66 self._architecture = "x86_64" |
68 assert self._version in self.SUPPORTED_VERSIONS | 67 assert self._version in self.SUPPORTED_VERSIONS |
69 | 68 |
70 if not self.get_option('disable_breakpad'): | 69 if not self.get_option('disable_breakpad'): |
71 self._dump_reader = DumpReaderLinux(host, self._build_path()) | 70 self._dump_reader = DumpReaderLinux(host, self._build_path()) |
72 | 71 |
73 def additional_driver_flag(self): | 72 def additional_driver_flag(self): |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 | 119 |
121 def _wdiff_missing_message(self): | 120 def _wdiff_missing_message(self): |
122 return 'wdiff is not installed; please install using "sudo apt-get insta
ll wdiff"' | 121 return 'wdiff is not installed; please install using "sudo apt-get insta
ll wdiff"' |
123 | 122 |
124 def _path_to_driver(self, target=None): | 123 def _path_to_driver(self, target=None): |
125 binary_name = self.driver_name() | 124 binary_name = self.driver_name() |
126 return self._build_path_with_target(target, binary_name) | 125 return self._build_path_with_target(target, binary_name) |
127 | 126 |
128 def _path_to_helper(self): | 127 def _path_to_helper(self): |
129 return None | 128 return None |
OLD | NEW |