def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() # FIXME: crbug.com/279494. This needs to be in the "real layout tests # dir" in a mock filesystem, rather than outside of the checkout, so # that tests that want to write to a TestExpectations file can share # this between "test" ports and "real" ports. This is the result of # rebaseline_unittest.py having tests that refer to "real" port names # and real builders instead of fake builders that point back to the # test ports. rebaseline_unittest.py needs to not mix both "real" ports # and "test" ports self._generic_expectations_path = "/mock-checkout/LayoutTests/TestExpectations" self._results_directory = None self._operating_system = "mac" if self._name.startswith("test-win"): self._operating_system = "win" elif self._name.startswith("test-linux"): self._operating_system = "linux" version_map = { "test-win-win7": "win7", "test-win-win10": "win10", "test-mac-mac10.10": "mac10.10", "test-mac-mac10.11": "mac10.11", "test-linux-x86": "linux32", "test-linux-precise": "precise", "test-linux-trusty": "trusty", } self._version = version_map[self._name] if self._operating_system == "linux" and self._version != "linux32": self._architecture = "x86_64" self.all_systems = ( ("mac10.10", "x86"), ("mac10.11", "x86"), ("win7", "x86"), ("win10", "x86"), ("linux32", "x86"), ("precise", "x86_64"), ("trusty", "x86_64"), ) self.all_build_types = ("debug", "release") # To avoid surprises when introducing new macros, these are # intentionally fixed in time. self.configuration_specifier_macros_dict = { "mac": ["mac10.10", "mac10.11"], "win": ["win7", "win10"], "linux": ["linux32", "precise", "trusty"], }
def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() # FIXME: crbug.com/279494. This needs to be in the "real layout tests # dir" in a mock filesystem, rather than outside of the checkout, so # that tests that want to write to a TestExpectations file can share # this between "test" ports and "real" ports. This is the result of # rebaseline_unittest.py having tests that refer to "real" port names # and real builders instead of fake builders that point back to the # test ports. rebaseline_unittest.py needs to not mix both "real" ports # and "test" ports self._generic_expectations_path = '/mock-checkout/LayoutTests/TestExpectations' self._results_directory = None self._operating_system = 'mac' if self._name.startswith('test-win'): self._operating_system = 'win' elif self._name.startswith('test-linux'): self._operating_system = 'linux' version_map = { 'test-win-win7': 'win7', 'test-win-win10': 'win10', 'test-mac-mac10.10': 'mac10.10', 'test-mac-mac10.11': 'mac10.11', 'test-linux-x86': 'linux32', 'test-linux-precise': 'precise', 'test-linux-trusty': 'trusty', } self._version = version_map[self._name] if self._operating_system == 'linux' and self._version != 'linux32': self._architecture = 'x86_64' self.all_systems = (('mac10.10', 'x86'), ('mac10.11', 'x86'), ('win7', 'x86'), ('win10', 'x86'), ('linux32', 'x86'), ('precise', 'x86_64'), ('trusty', 'x86_64')) self.all_build_types = ('debug', 'release') # To avoid surprises when introducing new macros, these are # intentionally fixed in time. self.configuration_specifier_macros_dict = { 'mac': ['mac10.10', 'mac10.11'], 'win': ['win7', 'win10'], 'linux': ['linux32', 'precise', 'trusty'] }
def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() # FIXME: crbug.com/279494. This needs to be in the "real layout tests # dir" in a mock filesystem, rather than outside of the checkout, so # that tests that want to write to a TestExpectations file can share # this between "test" ports and "real" ports. This is the result of # rebaseline_unittest.py having tests that refer to "real" port names # and real builders instead of fake builders that point back to the # test ports. rebaseline_unittest.py needs to not mix both "real" ports # and "test" ports self._generic_expectations_path = '/mock-checkout/LayoutTests/TestExpectations' self._results_directory = None self._operating_system = 'mac' if self._name.startswith('test-win'): self._operating_system = 'win' elif self._name.startswith('test-linux'): self._operating_system = 'linux' version_map = { 'test-win-win7': 'win7', 'test-win-win10': 'win10', 'test-mac-mac10.10': 'mac10.10', 'test-mac-mac10.11': 'mac10.11', 'test-linux-precise': 'precise', 'test-linux-trusty': 'trusty', } self._version = version_map[self._name] if self._operating_system == 'linux': self._architecture = 'x86_64' self.all_systems = (('mac10.10', 'x86'), ('mac10.11', 'x86'), ('win7', 'x86'), ('win10', 'x86'), ('precise', 'x86_64'), ('trusty', 'x86_64')) self.all_build_types = ('debug', 'release') # To avoid surprises when introducing new macros, these are # intentionally fixed in time. self.configuration_specifier_macros_dict = { 'mac': ['mac10.10', 'mac10.11'], 'win': ['win7', 'win10'], 'linux': ['precise', 'trusty'] }
def __init__(self, host, port_name=None, **kwargs): Port.__init__(self, host, port_name or TestPort.default_port_name, **kwargs) self._tests = unit_test_list() self._flakes = set() # FIXME: crbug.com/279494. This needs to be in the "real layout tests # dir" in a mock filesystem, rather than outside of the checkout, so # that tests that want to write to a TestExpectations file can share # this between "test" ports and "real" ports. This is the result of # rebaseline_unittest.py having tests that refer to "real" port names # and real builders instead of fake builders that point back to the # test ports. rebaseline_unittest.py needs to not mix both "real" ports # and "test" ports self._generic_expectations_path = '/mock-checkout/LayoutTests/TestExpectations' self._results_directory = None self._operating_system = 'mac' if self._name.startswith('test-win'): self._operating_system = 'win' elif self._name.startswith('test-linux'): self._operating_system = 'linux' version_map = { 'test-win-win7': 'win7', 'test-win-win10': 'win10', 'test-mac-mac10.10': 'mac10.10', 'test-mac-mac10.11': 'mac10.11', 'test-linux-x86': 'linux32', 'test-linux-precise': 'precise', 'test-linux-trusty': 'trusty', } self._version = version_map[self._name] if self._operating_system == 'linux' and self._version != 'linux32': self._architecture = 'x86_64'
def __init__(self, host, port_name, **kwargs): Port.__init__(self, host, port_name, **kwargs) # All sub-classes override this, but we need an initial value for testing. self._chromium_base_dir_path = None
def __init__(self, **kwargs): Port.__init__(self, **kwargs) # All sub-classes override this, but we need an initial value for testing. self._version = 'xp' self._chromium_base_dir = None
def __init__(self, host, **kwargs): Port.__init__(self, host, **kwargs) # All sub-classes override this, but we need an initial value for testing. self._version = 'xp' self._chromium_base_dir = None