def test_mac_port(self): self.assertEquals(MacPort.name(), "Mac") self.assertEquals(MacPort.flag(), "--port=mac") self.assertEquals(MacPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) self.assertEquals(MacPort.build_webkit_command(), [WebKitPort.script_path("build-webkit")]) self.assertEquals(MacPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug"]) self.assertEquals(MacPort.build_webkit_command(build_style="release"), [WebKitPort.script_path("build-webkit"), "--release"])
def test_chromium_port(self): self.assertEquals(ChromiumPort.name(), "Chromium") self.assertEquals(ChromiumPort.flag(), "--port=chromium") self.assertEquals(ChromiumPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) self.assertEquals(ChromiumPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--chromium"]) self.assertEquals(ChromiumPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug", "--chromium"]) self.assertEquals(ChromiumPort.update_webkit_command(), [WebKitPort.script_path("update-webkit"), "--chromium"])
def test_qt_port(self): self.assertEquals(QtPort.name(), "Qt") self.assertEquals(QtPort.flag(), "--port=qt") self.assertEquals(QtPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) self.assertEquals(QtPort.build_webkit_command(), [ WebKitPort.script_path("build-webkit"), "--qt", '--makeargs="-j%s"' % Executive.cpu_count() ]) self.assertEquals(QtPort.build_webkit_command(build_style="debug"), [ WebKitPort.script_path("build-webkit"), "--debug", "--qt", '--makeargs="-j%s"' % Executive.cpu_count() ])
def process_work_item(self, failure_info): svn_revision = failure_info["svn_revision"] builders = failure_info["builders"] self.tool.executive.run_and_throw_if_fail( WebKitPort.update_webkit_command(), quiet=True) commit_info = self.tool.checkout().commit_info_for_revision( svn_revision) responsible_parties = [ commit_info.committer(), commit_info.author(), commit_info.reviewer() ] irc_nicknames = sorted( set([ party.irc_nickname for party in responsible_parties if party and party.irc_nickname ])) irc_prefix = ": " if irc_nicknames else "" irc_message = "%s%sr%s appears to have broken %s" % ( ", ".join(irc_nicknames), irc_prefix, svn_revision, ", ".join( [builder.name() for builder in builders])) self.tool.irc().post(irc_message) for builder in builders: self.tool.status_server.update_svn_revision( svn_revision, builder.name())
def process_work_item(self, failure_info): svn_revision = failure_info["svn_revision"] builders = failure_info["builders"] self.tool.executive.run_and_throw_if_fail(WebKitPort.update_webkit_command(), quiet=True) commit_info = self.tool.checkout().commit_info_for_revision(svn_revision) responsible_parties = [commit_info.committer(), commit_info.author(), commit_info.reviewer()] irc_nicknames = sorted( set([party.irc_nickname for party in responsible_parties if party and party.irc_nickname]) ) irc_prefix = ": " if irc_nicknames else "" irc_message = "%s%sr%s appears to have broken %s" % ( ", ".join(irc_nicknames), irc_prefix, svn_revision, ", ".join([builder.name() for builder in builders]), ) self.tool.irc().post(irc_message) for builder in builders: self.tool.status_server.update_svn_revision(svn_revision, builder.name())
def __init__(self): AbstractReviewQueue.__init__(self) self.port = WebKitPort.port(self.port_name)
def port(self): if self._port: return self._port self._port = WebKitPort.port(self._options.port) return self._port
def test_qt_port(self): self.assertEquals(QtPort.name(), "Qt") self.assertEquals(QtPort.flag(), "--port=qt") self.assertEquals(QtPort.run_webkit_tests_command(), [WebKitPort.script_path("run-webkit-tests")]) self.assertEquals(QtPort.build_webkit_command(), [WebKitPort.script_path("build-webkit"), "--qt", '--makeargs="-j%s"' % Executive.cpu_count()]) self.assertEquals(QtPort.build_webkit_command(build_style="debug"), [WebKitPort.script_path("build-webkit"), "--debug", "--qt", '--makeargs="-j%s"' % Executive.cpu_count()])