Title: [104387] trunk/Tools
Revision
104387
Author
commit-qu...@webkit.org
Date
2012-01-07 09:46:06 -0800 (Sat, 07 Jan 2012)

Log Message

[WK2][GTK] Each test takes roughly half a second to load
https://bugs.webkit.org/show_bug.cgi?id=70699

Patch by Zan Dobersek <zandober...@gmail.com> on 2012-01-07
Reviewed by Martin Robinson.

Set the XDG_CACHE_HOME environment variable when testing with
WebKitTestRunner. This way the testing is started with a non-existing
application cache. If the cache exists and is not empty, the emptying
and vacuuming that is performed before every test can consume a lot of
time.

This is just a temporary workaround until it becomes possible to set
a desired directory to be used as the application cache location through
WebKitWebContext.

* Scripts/webkitpy/layout_tests/port/gtk.py:
(GtkPort.setup_environ_for_server):

Modified Paths

Diff

Modified: trunk/Tools/ChangeLog (104386 => 104387)


--- trunk/Tools/ChangeLog	2012-01-07 17:18:14 UTC (rev 104386)
+++ trunk/Tools/ChangeLog	2012-01-07 17:46:06 UTC (rev 104387)
@@ -1,5 +1,25 @@
 2012-01-07  Zan Dobersek  <zandober...@gmail.com>
 
+        [WK2][GTK] Each test takes roughly half a second to load
+        https://bugs.webkit.org/show_bug.cgi?id=70699
+
+        Reviewed by Martin Robinson.
+
+        Set the XDG_CACHE_HOME environment variable when testing with
+        WebKitTestRunner. This way the testing is started with a non-existing
+        application cache. If the cache exists and is not empty, the emptying
+        and vacuuming that is performed before every test can consume a lot of
+        time.
+
+        This is just a temporary workaround until it becomes possible to set
+        a desired directory to be used as the application cache location through
+        WebKitWebContext.
+
+        * Scripts/webkitpy/layout_tests/port/gtk.py:
+        (GtkPort.setup_environ_for_server):
+
+2012-01-07  Zan Dobersek  <zandober...@gmail.com>
+
         [GTK] Enable requestAnimationFrame in build-webkit
         https://bugs.webkit.org/show_bug.cgi?id=75773
 

Modified: trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk.py (104386 => 104387)


--- trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk.py	2012-01-07 17:18:14 UTC (rev 104386)
+++ trunk/Tools/Scripts/webkitpy/layout_tests/port/gtk.py	2012-01-07 17:46:06 UTC (rev 104387)
@@ -94,6 +94,11 @@
         environment['TEST_RUNNER_TEST_PLUGIN_PATH'] = self._build_path('TestNetscapePlugin', '.libs')
         environment['WEBKIT_INSPECTOR_PATH'] = self._build_path('Programs', 'resources', 'inspector')
         environment['WEBKIT_TOP_LEVEL'] = self._config.webkit_base_dir()
+        if self.get_option('webkit_test_runner'):
+            # FIXME: This is a workaround to ensure that testing with WebKitTestRunner is started with
+            # a non-existing cache. This should be removed when (and if) it will be possible to properly
+            # set the cache directory path through a WebKitWebContext.
+            environment['XDG_CACHE_HOME'] = self._filesystem.join(self.results_directory(), 'appcache')
         return environment
 
     def _generate_all_test_configurations(self):
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to