blob: 460a08c32bac6579803e4931ff5c7a73f1d7a5c7 [file] [log] [blame]
#!/usr/bin/env vpython3
# Copyright 2015 The Chromium Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Runs an instance of wptserve to allow manual testing of web-platform-tests.
The main HTTP server is run on 8001, while the main HTTPS server is run on 8444.
URL paths are relative to the web-platform-tests root, e.g. the test:
web_tests/external/wpt/referrer-policy/generic/meta-tag-in-svg-image.html
Could be tried by running this script, then navigating to:
http://localhost:8001/referrer-policy/generic/meta-tag-in-svg-image.html
"""
from blinkpy.web_tests.servers import cli_wrapper
from blinkpy.web_tests.servers import wptserve
print("Generated content (out/<build directory>/gen) is served from "
"out/Release/gen by default. Specify an alternate directory with "
"'-t <build directory>'.")
cli_wrapper.main(wptserve.WPTServe, description=__doc__)