Bug 152486 - Make it straightforward to start the Web Platform Tests HTTP server using run-webkit-httpd
Summary: Make it straightforward to start the Web Platform Tests HTTP server using run...
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Local Build
Hardware: All All
: P2 Normal
Assignee: youenn fablet
Depends on:
Reported: 2015-12-21 12:18 PST by Daniel Bates
Modified: 2016-07-03 23:34 PDT (History)
6 users (show)

See Also:

Patch (3.71 KB, patch)
2016-07-02 08:05 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Bates 2015-12-21 12:18:35 PST
In order to run a test in LayoutTests/imported/w3c/web-platform-tests outside of run-webkit-tests you need to follow the instructions in <http://trac.webkit.org/browser/trunk/LayoutTests/imported/w3c/web-platform-tests/README.md?rev=191043> to start the Web Platform Tests HTTP server. Although these instructions are straightforward it is less convenient to start the Web Platform Tests HTTP server than it is to run script run-webkit-httpd to start a HTTP server to serve the HTTP tests in LayoutTests/http/tests/. We should consider teaching run-webkit-httpd to start the Web Platform Tests server.

For completeness, run-webkit-tests knows how to start the Web Platform Tests HTTP server as part of its logic to run the Web Platform Tests. We should look to start up the Web Platform Tests in a similar manner as run-webkit-tests or, even better, look to have run-webkit-tests use run-webkit-httpd to start up all HTTP servers.
Comment 1 youenn fablet 2015-12-22 08:54:41 PST
Note that the wpt submodules are not checked in WebKit repository.
The README.md instructions will be successful only when these submodules are present.

Tools/Scripts/webkitpy/layout_tests/servers/web_platform_test_server.py may be more appropriate.

It first installs (if not already done previously) these submodules (which description is found in LayoutTests/imported/w3c/resources/web-platform-tests-modules.json) on the local file system.

It then starts the wpt server using a specific configuration (stored in LayoutTests/imported/w3c/resources/config.json).
Comment 2 youenn fablet 2016-07-02 08:05:06 PDT
Created attachment 282641 [details]
Comment 3 youenn fablet 2016-07-02 08:08:26 PDT
(In reply to comment #2)
> Created attachment 282641 [details]
> Patch

This patch updates run-webkit-httpd to start or not web-platform-tests server in addition to httpd.
I guess the run-webkit-httpd should be renamed.
Comment 4 WebKit Commit Bot 2016-07-02 10:46:25 PDT
Comment on attachment 282641 [details]

Clearing flags on attachment: 282641

Committed r202780: <http://trac.webkit.org/changeset/202780>
Comment 5 WebKit Commit Bot 2016-07-02 10:46:29 PDT
All reviewed patches have been landed.  Closing bug.