Commit Graph

33 Commits

Author SHA1 Message Date
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