2010-12-12 Alejandro G. Castro <alex@igalia.com>

        Reviewed by Eric Seidel.

        [GTK] Add new-run-webkit-tests support to gtk
        https://bugs.webkit.org/show_bug.cgi?id=50681

        Adding the basic support to run the new-run-webkit-tests.

        * Scripts/webkitpy/layout_tests/port/gtk.py:

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@73873 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 1927b01a
2010-12-12 Alejandro G. Castro <alex@igalia.com>
Reviewed by Eric Seidel.
[GTK] Add new-run-webkit-tests support to gtk
https://bugs.webkit.org/show_bug.cgi?id=50681
Adding the basic support to run the new-run-webkit-tests.
* Scripts/webkitpy/layout_tests/port/gtk.py:
2010-10-11 Diego Gonzalez <diegohcg@webkit.org>
Reviewed by Kenneth Rohde Christiansen.
......
......@@ -30,6 +30,7 @@
import logging
import os
import signal
from webkitpy.layout_tests.port.webkit import WebKitPort
......@@ -81,3 +82,35 @@ class GtkPort(WebKitPort):
# file), so if kill fails on the given PID, just try to
# 'killall' web servers.
self._shut_down_http_server(None)
def _path_to_driver(self):
return self._build_path('Programs', 'DumpRenderTree')
def check_build(self, needs_http):
if not self._check_driver():
return False
return True
def _path_to_apache(self):
if self._is_redhat_based():
return '/usr/sbin/httpd'
else:
return '/usr/sbin/apache2'
def _path_to_apache_config_file(self):
if self._is_redhat_based():
config_name = 'fedora-httpd.conf'
else:
config_name = 'apache2-debian-httpd.conf'
return os.path.join(self.layout_tests_dir(), 'http', 'conf',
config_name)
def _path_to_wdiff(self):
if self._is_redhat_based():
return '/usr/bin/dwdiff'
else:
return '/usr/bin/wdiff'
def _is_redhat_based(self):
return os.path.exists(os.path.join('/etc', 'redhat-release'))
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment