Commit Graph

46 Commits

Author SHA1 Message Date
Maja Frydrychowicz
21ba7eedbd Bug 1323620 - Add "fennec" product to wptrunner. r=jgraham
This allows running web-platform-tests on Fennec given a running emulator.
(Which is how we expect the tests to run in automation as well -- the
android_emulator_unittest mozharness script takes care of emulator
start-up.) It also hooks up ./mach wpt.

wptrunner sets up a profile for Fennec, forwards the marionette port
and starts up Fennec, etc.

= Usage =

Set your mozconfig to build fennec.

Start an emulator: `./mach android-emulator --version x86`
Install fennec: `./mach build && ./mach package && ./mach install`
Run the tests:

```
./mach wpt --product=fennec --testtype=testharness
--certutil-binary path/to/host/os/certutil path/to/some/tests
```

Differential Revision: https://phabricator.services.mozilla.com/D1587
2018-06-15 16:30:58 +00:00
Ahilya Sinha
4ffcf5c1f3 Bug 1466514 - download the uploaded wpt-manifest, r=jgraham
MozReview-Commit-ID: BP4A9S5xG7M
2018-06-04 18:16:28 +05:30
James Graham
09ee86dd6c Bug 1265584 - Use ujson where possible for faster metadata update, r=maja_zf
Profiling shows that switching to this library means we no longer
spend most of the update time parsing json (vs 80% or so before),
making other optimisations worthwhile. This is never used in
automation (except wptsync) so availability of the library in the
internal pypi isn't a problem.

MozReview-Commit-ID: U5gabb5lz8
2018-05-25 11:58:13 +01:00
James Graham
1f9fc7bf5f Bug 1402970. Make mach wpt-create work correctly again. r=bzbarsky 2017-09-26 16:13:04 -04:00
Jeremy Chen
69d1c511dc Bug 1399805 - fix the default path of fix_macosx_stack.py for running wpt tests. r=jgraham
We try to find fix_macosx_stack.py on the wrong path, which leads us can't run
wpt tests without setting stack fix directory manually (--stackfix-dir).
In this patch, we fix this issue by pointing the path to @topobjdir/dist/bin.

MozReview-Commit-ID: 8JzWWgVM6fM
2017-09-14 19:07:23 +08:00
James Graham
7b0afb8078 Bug 1390896 - Make mach wpt compatible with latest upstream, r=maja_zf
Upstream wpt changed from having a wptrun script to a wpt script with
a run subcommand. This involved some internal movement of code which
broke the `mach wpt` command when used with a non-firefox
product. This commit changes the mach integration to be compatible
with the new upstream API.

MozReview-Commit-ID: 1hvmZedNHSX
2017-08-16 15:42:30 +01:00
Makoto Kato
74f4aa0c7b Bug 1386496 - Ahem.ttf is broken on web-platform-tests. r=jgraham
Ahem.ttf is copied to $(DIST)/bin/firefox/fonts, but this file is broken due to text mode copy.  So we should use binary mode instead.

MozReview-Commit-ID: KP7yNyPiejU
2017-08-02 12:35:53 +09:00
James Graham
7a5f7da488 Bug 1341078 - Run CSS tests on Linux, r=ahal
These are initially run on Linux only for capacity reasons.

MozReview-Commit-ID: Ge4nu1NGDdr
2017-07-20 13:05:26 +01:00
James Graham
600029a419 Bug 1377886 - Improve handling of reftests in mach wpt-create, r=automatedtester
Create an emmpty reference file if one doesn't exist, and open it in
the editor.

MozReview-Commit-ID: 5aBLp2AdnzY
2017-07-03 15:39:20 +01:00
James Graham
58de50c827 Bug 1377886 - Don't start Firefox with mach wpt-create, r=automatedtester
This confuses people and isn't needed to update the manifest these days.

MozReview-Commit-ID: 4t4zdXLMob5
2017-07-03 15:38:10 +01:00
James Graham
ca59c69886 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-24 12:03:12 +01:00
Wes Kocher
83195d41fb Backed out 16 changesets (bug 1363428) for Wr failures a=backout CLOSED TREE
Backed out changeset e86d6d5c2a25 (bug 1363428)
Backed out changeset a0687a63e7b9 (bug 1363428)
Backed out changeset 858dc97498c7 (bug 1363428)
Backed out changeset 582a8dce7932 (bug 1363428)
Backed out changeset 26ae2fd48587 (bug 1363428)
Backed out changeset 7fa8e20fe001 (bug 1363428)
Backed out changeset 829c13a75667 (bug 1363428)
Backed out changeset a94d2c400b04 (bug 1363428)
Backed out changeset ec4a6b343b37 (bug 1363428)
Backed out changeset c27b94038e71 (bug 1363428)
Backed out changeset d1c03b96d270 (bug 1363428)
Backed out changeset 60c1c95b46ca (bug 1363428)
Backed out changeset b0604d88973f (bug 1363428)
Backed out changeset f0b218979773 (bug 1363428)
Backed out changeset 1d359561373c (bug 1363428)
Backed out changeset 956d6c0a646e (bug 1363428)

MozReview-Commit-ID: K8EBA8ACZLC
2017-06-23 14:13:27 -07:00
James Graham
bf0dbcdff7 Bug 1363428 - Copy the Ahem font into the bundled font directory, r=maja_zf
MozReview-Commit-ID: 3VgrawYWoWp
2017-06-01 15:20:11 +01:00
James Graham
d0dd87c178 Bug 1294820 - Add support for running wpt from one-click loaner mach environment, r=ahal
Allow running |mach wpt| on one click loaners in order to run
web-platform-tests tests.

This implementation is just like the one for other testsuites using
thee packaged tests rather than the checkout that we get with wpt, at
least on Linux. That's also where the tests run from so it seems
reasonable for now. Moving to the checkout in the future could remove
some of the logic here by using a fake mozbuild environment so that
the testsuite itself doesn't have to implement anything much.

MozReview-Commit-ID: CaewrdjJ2ef
2017-06-19 19:20:41 +01:00
James Graham
aeeac65dff Bug 1370936 - Skip directories when updating metdata, r=ato
MozReview-Commit-ID: HLFo9vhYS8p
2017-06-16 10:45:55 +01:00
James Graham
c4a3e10f6e Bug 1371358 - Don't check the webdriver binary exists before running wpt tests, r=ato
This ensures that developers can run the majority of tests with the
default config, but makes things a little more confusing for marionette
developers.

MozReview-Commit-ID: 9wd761ZgCyx
2017-06-08 18:15:31 +01:00
James Graham
ca3a21cb71 Bug 1369109 - Add --rebuild option to mach wpt-manifest-update, r=maja_zf
This is required for cases where files have not changed but the
manifest logic has changed.

MozReview-Commit-ID: E46HtouILS2
2017-06-05 16:39:45 +01:00
Andreas Tolfsen
4e061c9735 Bug 1368264 - Have mach pick up geckodriver from dist/bin r=jgraham
MozReview-Commit-ID: Fs9F6o7jNDP
2017-06-05 11:30:59 +01:00
James Graham
476559fe7c Bug 1370203 - Check hosts are configured with |mach wpt|, r=farre
For Chrome and Edge we don't have any way to set the DNS configuration
to include web-platform.test, so we need to error if this isn't already set.

MozReview-Commit-ID: BHRsTiuV28x
2017-06-05 13:29:47 +01:00
James Graham
0f647feeb5 Bug 1367041 - Add |mach wpt| support for Chrome, Edge and Servo, r=AutomatedTester
Using the wptrun infrastructure from upstream, it is now posible to
make it easy to run web-platform-tests in other browsers. The syntax
used is

mach wpt --product [chrome|servo|edge] [tests]

This will try to use the selected product; possibly prompting to
install dependencies like the WebDriver implementation. For servo if
the install isn't on the PATH then --binary can be used to point to
the actual location.

Because manifest metadata is kept in the same directory as expectation
data and we don't want to reuse Firefox expectation data for other
browsers, a new products subdirectory is introduced and added to the
ignore files. This will contain a subdirectory for each product into
which a copy of the test manifest is placed. It may also be used to
store any expectation data for the other products, in the same way as
testing/web-platform/meta.

MozReview-Commit-ID: 8fdCnha5t2F
2017-05-31 15:45:47 +01:00
Carsten "Tomcat" Book
c1091c94a8 Backed out changeset 64ff9b546c6e (bug 1367041) 2017-05-31 14:21:53 +02:00
James Graham
ab88477020 Bug 1367041 - Add |mach wpt| support for Chrome, Edge and Servo, r=AutomatedTester
Using the wptrun infrastructure from upstream, it is now posible to
make it easy to run web-platform-tests in other browsers. The syntax
used is

mach wpt --product [chrome|servo|edge] [tests]

This will try to use the selected product; possibly prompting to
install dependencies like the WebDriver implementation. For servo if
the install isn't on the PATH then --binary can be used to point to
the actual location.

Because manifest metadata is kept in the same directory as expectation
data and we don't want to reuse Firefox expectation data for other
browsers, a new products subdirectory is introduced and added to the
ignore files. This will contain a subdirectory for each product into
which a copy of the test manifest is placed. It may also be used to
store any expectation data for the other products, in the same way as
testing/web-platform/meta.

MozReview-Commit-ID: 8fdCnha5t2F
2017-05-31 10:58:35 +01:00
Carsten "Tomcat" Book
c9e2963092 Backed out changeset 448b7c4ed09e (bug 1367041) 2017-05-31 10:47:06 +02:00
James Graham
50a506c06f Bug 1367041 - Add |mach wpt| support for Chrome, Edge and Servo, r=AutomatedTester
Using the wptrun infrastructure from upstream, it is now posible to
make it easy to run web-platform-tests in other browsers. The syntax
used is

mach wpt --product [chrome|servo|edge] [tests]

This will try to use the selected product; possibly prompting to
install dependencies like the WebDriver implementation. For servo if
the install isn't on the PATH then --binary can be used to point to
the actual location.

Because manifest metadata is kept in the same directory as expectation
data and we don't want to reuse Firefox expectation data for other
browsers, a new products subdirectory is introduced and added to the
ignore files. This will contain a subdirectory for each product into
which a copy of the test manifest is placed. It may also be used to
store any expectation data for the other products, in the same way as
testing/web-platform/meta.

MozReview-Commit-ID: 8fdCnha5t2F
2017-05-31 09:09:39 +01:00
James Graham
c8c8b2d03d Bug 1356227 - Add support for excluding paths when doing a wpt sync, r=ato
MozReview-Commit-ID: 6zadFuRDmVD
2017-04-20 10:49:21 +01:00
Sebastian Hengst
47a18b6c89 Backed out changeset c9919c878c14 (bug 1356227) for neverending W(7) jobs on Windows 7 VM debug. r=backout a=backout
MozReview-Commit-ID: 9y1GTQnUMMG
2017-04-14 17:19:25 +02:00
James Graham
f154bd014a Bug 1356227 - Add support for excluding paths when doing a wpt sync, r=ato
MozReview-Commit-ID: 6zadFuRDmVD
2017-04-13 16:22:32 +01:00
James Graham
e39f9b11fe Bug 1316667 - Use a path that exists when resolving stackfix dir, r=jmaher
This fixes a bug on Windows where we try to append .exe to the path
and so get an invalid, non-existing path by using the Fx binary as the
path and then stripping off the filename.

MozReview-Commit-ID: 8EWGGcz40iw
2016-11-11 18:09:22 +00:00
James Graham
49901b952b Bug 1309932 - Allow wpt sync script to work with non-merge PRs, r=Ms2ger
MozReview-Commit-ID: DsrFzoBnfbp
2016-10-25 18:10:30 +01:00
James Graham
bdf83f2ddc Bug 1238043 - Enable assert stack fixup for wpt, r=ted
MozReview-Commit-ID: GLZ4nMLilel
2016-10-12 23:04:58 +01:00
James Graham
394b1053df Bug 1302796 - Add --check-clean flag to mach manifest update and mozlint integration, r=ahal,Ms2ger
MozReview-Commit-ID: 8Z4ywNEbF8G
2016-09-13 14:20:20 +01:00
James Graham
5735303f18 Bug 1302105 - Add wpt* aliases for web-platform-tests* commands, r=Ms2ger
MozReview-Commit-ID: KPhtTUyKs3z
2016-09-12 15:10:55 +01:00
James Graham
f769838270 Bug 1301473 - Add a wpt-manifest-update command, r=Ms2ger
This updates the manifest without loading any of the test-running
infrastructure, or requiring a build.

MozReview-Commit-ID: HJko5gUB3ov
2016-09-12 15:06:32 +01:00
Jonathan Kingston
2c3385a0e8 Bug 1273288 - Fix issue with undefined proc variable when editor isn't possible r=jgraham
MozReview-Commit-ID: JNoFf6Jt3aN
2016-06-07 14:44:52 +01:00
Dan Minor
7d4326c745 Bug 1272141 - Make web-platform-tests-create mach command create intermediate directories; r=jgraham
MozReview-Commit-ID: 5kd68NQTwXy
2016-05-11 17:17:47 -04:00
James Graham
c53e8a9943 Bug 1257797 - Pass product argument by default when running mach web-platform-tests-update, r=Ms2ger
MozReview-Commit-ID: QtlQrpaL9J
2016-03-18 11:02:41 +00:00
James Graham
d611c66907 Bug 1216168 - Add reftest support for mach web-platform-tests-create, r=Ms2ger 2015-10-19 16:50:52 +01:00
James Graham
c694258881 Bug 1214783 - Create a |mach web-platform-tests-create| command, r=Ms2ger
This provides a simple way of creating a web-platform-test with all
the boilerplate added automatically. It also updates the manifest file
with the new test and opens it in the configured editor and source
build.
2015-10-15 14:48:36 +01:00
James Graham
1d41b663af Bug 1176632 - Defer creating the web-platform-tests command line argument parser for mach, r=chmanchester 2015-07-07 10:05:35 +01:00
Gregory Szorc
d993a444fa Bug 1176642 - Use absolute_import in mach_commands.py files; r=glandium
This removes ambiguity as to which modules are being imported, making
import slightly faster as Python doesn't need to test so many
directories for file presence.

All files should already be using absolute imports because mach command
modules aren't imported to the package they belong to: they instead
belong to the "mach" package. So relative imports shouldn't have been
used.
2015-06-21 17:39:09 -07:00
James Graham
9b1aa6595f Bug 1169410 Add support for web-platform-tests to |mach test| r=gps 2015-05-28 20:27:23 +01:00
James Graham
dd5c1c6eee Bug 1124181 - Store local base SHA1 of last web-platform-tests update explicitly, r=ahal 2015-02-06 16:11:51 +00:00
James Graham
b28b683780 Bug 1102907 - Script for allowing web-platform-tests changes to be upstreamed, r=ahal
This extends the upstream update script with steps for pushing
local changes to upstream. The general approach is to look for all
commits to the tests directory since the last sync, rewrite those
so they apply to upstream at the last sync point, then rebase onto
the sync commit, before creating and merging a PR for each in turn.
2015-01-13 09:42:40 +00:00
James Graham
22d8030b1f Bug 1025066 - Add certs and mach integration for running web-platform-tests with https, r=ted 2015-01-10 10:42:44 +00:00
James Graham
1d16931981 Bug 1103906 - Enable logger for mach web-platform-tests-update script, r=ato 2014-11-24 12:56:31 +00:00
James Graham
c4edc27516 Bug 945222 - Initial import of web-platform-tests testsuite 4/4 : Integration with build system, mach and mozharness, r=ahal,gps 2014-09-04 12:52:43 +01:00