mirror of
https://github.com/servo/servo.git
synced 2025-08-08 23:15:33 +01:00
Remove all outdated CSS-related mach commands.
This commit is contained in:
parent
12d22f6bd2
commit
28c20988f0
7 changed files with 7 additions and 300 deletions
|
@ -1,4 +1,4 @@
|
|||
This folder contains the web platform tests, CSS WG tests, and the
|
||||
This folder contains the web platform tests and the
|
||||
code required to integrate them with Servo.
|
||||
To learn how to write tests, go [here](http://web-platform-tests.org/writing-tests/index.html).
|
||||
|
||||
|
@ -9,15 +9,10 @@ In particular, this folder contains:
|
|||
|
||||
* `config.ini`: some configuration for the web-platform-tests.
|
||||
* `include.ini`: the subset of web-platform-tests we currently run.
|
||||
* `config_css.ini`: some configuration for the CSSWG tests.
|
||||
* `include_css.ini`: the subset of the CSSWG tests we currently run.
|
||||
* `run_wpt.py`: glue code to run the web-platform-tests in Servo.
|
||||
* `run_css.py`: glue code to run the CSSWG tests in Servo.
|
||||
* `run.py`: common code used by `run_wpt.py` and `run_css.py`.
|
||||
* `run.py`: common code used by `run_wpt.py`.
|
||||
* `web-platform-tests`: copy of the web-platform-tests.
|
||||
* `metadata`: expected failures for the web-platform-tests we run.
|
||||
* `css-tests`: copy of the built CSSWG tests.
|
||||
* `metadata-css`: expected failures for the CSSWG tests we run.
|
||||
* `mozilla`: web-platform-tests that cannot be upstreamed.
|
||||
|
||||
Running the tests
|
||||
|
@ -28,8 +23,6 @@ test-wpt` in the root directory. This will run the subset of
|
|||
JavaScript tests defined in `include.ini` and log the output to
|
||||
stdout.
|
||||
|
||||
Similarly the CSSWG tests can be run using `./mach test-css`.
|
||||
|
||||
A subset of tests may be run by providing positional arguments to the
|
||||
mach command, either as filesystem paths or as test urls e.g.
|
||||
|
||||
|
@ -56,10 +49,9 @@ test with `mach test-wpt --release`
|
|||
Running the tests without mach
|
||||
------------------------------
|
||||
|
||||
When avoiding `mach` for some reason, one can run either `run_wpt.py`
|
||||
ir `run_css.py` directly. However, this requires that all the
|
||||
dependencies for `wptrunner` are avaliable in the current python
|
||||
environment.
|
||||
When avoiding `mach` for some reason, one can run `run_wpt.py`
|
||||
directly. However, this requires that all the dependencies for
|
||||
`wptrunner` are avaliable in the current python environment.
|
||||
|
||||
Running the tests manually
|
||||
--------------------------
|
||||
|
@ -135,9 +127,6 @@ log is saved, run from the root directory:
|
|||
|
||||
./mach update-wpt /tmp/servo.log
|
||||
|
||||
For CSSWG tests a similar prcedure works, with `./mach test-css` and
|
||||
`./mach update-css`.
|
||||
|
||||
Writing new tests
|
||||
=================
|
||||
|
||||
|
@ -167,11 +156,6 @@ web-platform-tests may be edited in-place and the changes committed to
|
|||
the servo tree. These changes will be upstreamed when the tests are
|
||||
next synced.
|
||||
|
||||
For CSS tests this kind of in-place update is not possible because the
|
||||
tests have a build step before they are pulled into the servo
|
||||
repository. Therefore corrections must be submitted directly to the
|
||||
source repository.
|
||||
|
||||
Updating the upstream tests
|
||||
===========================
|
||||
|
||||
|
@ -183,8 +167,7 @@ commands. e.g. to update the web-platform-tests:
|
|||
./mach update-wpt update.log
|
||||
|
||||
This should create two commits in your servo repository with the
|
||||
updated tests and updated metadata. The same process works for the
|
||||
CSSWG tests, using the `update-css` and `test-css` mach commands.
|
||||
updated tests and updated metadata.
|
||||
|
||||
Servo-specific tests
|
||||
====================
|
||||
|
@ -200,7 +183,7 @@ Analyzing reftest results
|
|||
Reftest results can be analyzed from a raw log file. To generate this run
|
||||
with the `--log-raw` option e.g.
|
||||
|
||||
./mach test-css --log-raw css.log
|
||||
./mach test-wpt --log-raw wpt.log
|
||||
|
||||
This file can then be fed into the
|
||||
[reftest analyzer](http://hoppipolla.co.uk/410/reftest-analyser-structured.xhtml)
|
||||
|
|
|
@ -1,17 +0,0 @@
|
|||
[products]
|
||||
servo =
|
||||
servodriver =
|
||||
|
||||
[web-platform-tests]
|
||||
name = CSS tests
|
||||
remote_url = https://github.com/jgraham/css-test-built
|
||||
branch = master
|
||||
sync_path = sync_css
|
||||
|
||||
[paths]
|
||||
run-info = .
|
||||
|
||||
[manifest:upstream]
|
||||
tests = css-tests
|
||||
metadata = metadata-css
|
||||
url-base = /
|
|
@ -1,154 +0,0 @@
|
|||
skip: true
|
||||
|
||||
[compositing-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css21_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-animations-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
|
||||
[css-backgrounds-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-color-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-conditional-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-flexbox-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-images-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-multicol-1_dev]
|
||||
skip: true
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-style-attr-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-text-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-text-decor-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-transforms-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-transitions-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-ui-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[css-values-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
|
||||
[css-variables-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[cssom-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[cssom-view-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[filters-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[geometry-1_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[mediaqueries-3_dev]
|
||||
skip: false
|
||||
[xhtml1]
|
||||
skip: true
|
||||
[xhtml1print]
|
||||
skip: true
|
||||
|
||||
[selectors-3_dev]
|
||||
skip: false
|
|
@ -1,20 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import run
|
||||
import sys
|
||||
|
||||
paths = {"include_manifest": run.wpt_path("include_css.ini"),
|
||||
"config": run.wpt_path("config_css.ini")}
|
||||
|
||||
|
||||
def run_tests(**kwargs):
|
||||
return run.run_tests(paths=paths, **kwargs)
|
||||
|
||||
|
||||
def main():
|
||||
return run.main(paths)
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(0 if main() else 1)
|
|
@ -1,43 +0,0 @@
|
|||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
import os
|
||||
import sys
|
||||
|
||||
here = os.path.split(__file__)[0]
|
||||
|
||||
|
||||
def wpt_path(*args):
|
||||
return os.path.join(here, *args)
|
||||
|
||||
# Imports
|
||||
sys.path.append(wpt_path("web-platform-tests", "tools", "wptrunner"))
|
||||
from wptrunner import wptcommandline
|
||||
|
||||
|
||||
def update_tests(**kwargs):
|
||||
from wptrunner import update
|
||||
|
||||
set_defaults(kwargs)
|
||||
logger = update.setup_logging(kwargs, {"mach": sys.stdout})
|
||||
|
||||
rv = update.run_update(logger, **kwargs)
|
||||
return 0 if rv is update.update.exit_clean else 1
|
||||
|
||||
|
||||
def set_defaults(kwargs):
|
||||
if kwargs["product"] is None:
|
||||
kwargs["product"] = "servo"
|
||||
if kwargs["config"] is None:
|
||||
kwargs["config"] = wpt_path('config_css.ini')
|
||||
wptcommandline.set_from_config(kwargs)
|
||||
|
||||
|
||||
def main():
|
||||
parser = wptcommandline.create_parser_update()
|
||||
kwargs = vars(parser.parse_args())
|
||||
return update_tests(**kwargs)
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(0 if main() else 1)
|
Loading…
Add table
Add a link
Reference in a new issue