Commit graph

179 commits

Author SHA1 Message Date
Ms2ger
d8511c8b8d Remove the legacy reftest framework. 2016-01-14 09:49:43 +01:00
apopiak
f34d2a53c8 add faster flag to ./mach test command in order to call test-tidy properly 2016-01-13 16:48:38 +01:00
Daan Sprenkels
a9b8d47d5d add a --faster option to ./mach test-tidy
which will
- only check files changed since the last merge by bors
- and skip the wpt-lint
2016-01-07 16:28:13 +01:00
nxnfufunezn
c7fab07d03 Make test-wpt run with RUST_BACKTRACE=1 by default #8194 2015-11-19 01:32:12 +05:30
bors-servo
5fda719fa8 Auto merge of #8415 - mrobinson:create-wpt-relative, r=frewsxcv
Form relative reference URLs during create-wpt

Instead of always using the absolute path to the reference file when
creating new reference tests, create-wpt now creates relative URLs if
the files are in the same directory. This is the most common case for
new Servo tests. Also fix some missing quotation marks in the
create-wpt template.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8415)
<!-- Reviewable:end -->
2015-11-09 22:43:25 +05:30
Martin Robinson
bebbc80129 Form relative reference URLs during create-wpt
Instead of always using the absolute path to the reference file when
creating new reference tests, create-wpt now creates relative URLs if
the files are in the same directory. This is the most common case for
new Servo tests. Also fix some missing quotation marks in the
create-wpt template.
2015-11-08 10:32:35 -08:00
Simon Martin
3b087d406a Avoid UnboundLocalError upon "bogus" usage of ./mach create-wpt 2015-11-08 14:48:02 +01:00
James Graham
9d41ddb72c Add create-wpt mach target to help with creating web-platform-tests 2015-10-20 10:43:55 +01:00
bors-servo
ba2714f4f6 Auto merge of #7813 - servo:parallel-unit-tests, r=mbrubeck
Run all unit tests with just one Cargo command.

Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies.

`touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7813)
<!-- Reviewable:end -->
2015-10-01 12:39:10 -06:00
Simon Sapin
9228b5011d Run all unit tests with just one Cargo command.
Upgrade Cargo to get https://github.com/rust-lang/cargo/pull/1828,
and use it for unit tests.
This allows Cargo to get some more parallelism
when compiling the test crates’ dependencies.

`touch components/util/lib.rs && mach test-unit` on my machine
goes from 149 seconds to 124.
2015-10-01 17:59:18 +02:00
Matt Brubeck
ab68d51eda Fixes for mach test-ref argument handling
* Change parameter from `name` to `include`. This is consistent with other
  test suites, and also fixes a bug in `mach test` caused by a conflicting
  keyword parameter in `Registrar.dispatch`.
* Allow any number of `include` arguments.
2015-10-01 08:54:18 -07:00
bors-servo
5d04f8dc8e Auto merge of #7809 - 6112:master, r=frewsxcv
Make `./mach test` work with unit tests

Fixes #7618.

Allows running a specific Rust test with one of:

```
./mach test tests/unit/net/http_loader.rs

./mach test-unit tests/unit/net/http_loader.rs
./mach test-unit tests/unit/net/http_loader
./mach test-unit net/http_loader
```

Allows running a whole package's tests with one of:

```
./mach test tests/unit/net

./mach test-unit tests/unit/net
```

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7809)
<!-- Reviewable:end -->
2015-09-30 20:30:26 -06:00
Nicolas
a844ce74f9 Allow ./mach test and ./mach test-unit to run unit tests with file path 2015-09-30 20:23:52 -04:00
bors-servo
9a4eb565c4 Auto merge of #7789 - 6112:master, r=mbrubeck
allow `./mach test` to run tests in tests/wpt/mozilla/

Allows running WPT tests in the tests/wpt/mozilla/ directory by using commands such as: 

```
./mach test tests/wpt/mozilla/tests/mozilla/union.html
```

Fixes #7772.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7789)
<!-- Reviewable:end -->
2015-09-29 19:58:28 -06:00
Nicolas
a3eee70727 allow ./mach test to run tests in tests/wpt/mozilla/ 2015-09-29 17:27:04 -04:00
Jaydeep
19be6f9f8e fix issue#6888 2015-09-27 10:18:15 -07:00
Josh Matthews
152b76b963 Remove obsolete method call that breaks ./mach update-css. 2015-09-03 00:37:44 -04:00
Corey Farwell
e38df50bbf Revert "Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests."
This reverts commit 47d6d958f5.
2015-09-02 09:34:01 -04:00
wilmoz
dafe077280 fixes test-wpt cannot be run from anywhere but the root 2015-08-11 11:30:06 -05:00
Corey Farwell
f873db5ab0 Allow Servo tests to be built/run with --release mode
Fixes #5075
2015-08-10 08:59:54 -04:00
Ms2ger
47d6d958f5 Revert "Auto merge of #7103 - frewsxcv:python-venv, r=metajack" for breaking web-platform-tests.
This reverts commit c315404db8, reversing
changes made to b00583bd4e.
2015-08-09 11:20:40 +02:00
Corey Farwell
33f78314d9 Use one Python virtual environment for all mach commands
Prior to this commit:

* Our Python dependency story was a bit of a mess. We had complete
 Python packages (wheels and directories) living in-tree, despite
 not having any changes from upstream. This is particularly bad because
 `setup.py` never gets run on these packages which could (sometimes
 silently) unintended breakage.
* Python virtual environments (virtualenv) were only utilized for
 testing web-platform tests

After this commit:

* A single virtualenv (`python/_virtualenv`) is activated upon *every*
 call to mach
* A requirements file (`python/requirements.txt`) is added to describe
 the dependencies needed by Python modules in `python/`. The child
 commit immediately following this will remove all the dependencies
 no longer needed in-tree (for the sake of keeping this commit
 readable).

Relevant to https://github.com/servo/servo/issues/861

Fixes https://github.com/servo/servo/issues/6999
2015-08-08 18:48:02 -04:00
Michael Howell
a93b4bba6d test-tidy fixes. 2015-07-31 21:49:01 -07:00
Michael Howell
f82f46680e UI cheeze. 2015-07-31 21:24:23 -07:00
Michael Howell
c602af2050 Integrate dromaeo with mach. 2015-07-31 21:24:22 -07:00
Matt Brubeck
859f99d5e8 Update WPT test expectations for --release builds 2015-07-23 22:57:54 -07:00
James Graham
6797ac6b58 Improve |mach test|.
Make mach test work with wpt tests.
Allow specifying specific testsuites on the command line
Allow specifying paths to CSS tests on the command line
2015-07-01 12:14:23 +01:00
bors-servo
d6263c9b6e Auto merge of #6306 - metajack:shared-target-dir, r=mbrubeck
This speeds up `./mach build --dev` followed by `./mach build-cef` by
25%. When rust-lang/cargo#497 is fixed, this speedup will increase
dramatically.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6306)
<!-- Reviewable:end -->
2015-06-15 13:08:14 -06:00
Jack Moffitt
a0237085c6 Use Cargo's target directory sharing.
This speeds up `./mach build --dev` followed by `./mach build-cef` by a
large amount, and also speeds up other build combos found in our CI.
2015-06-15 11:48:47 -06:00
Francesc Bautista
c99f65c4dc Set 'mach test-ref' default render mode to cpu and added a cli argument to 'mach test' to be able to select the render-mode. 2015-06-13 23:16:29 +02:00
Corey Farwell
848c57653c Add flake8 to the tidy process for Python files
Fixes #6236

Also included in this commit are the changes need to make flake8 pass
for the existing python file
2015-06-04 11:17:34 -04:00
Corey Farwell
ddc99190bb Pass release/dev arguments to command function for jQuery update 2015-06-03 18:45:08 -04:00
Corey Farwell
e3b71c65bf Fix tidy issues with Python files in python/ 2015-06-02 19:51:41 -04:00
Glenn Watson
be7ae0c732 Add jQuery test runner and mach integration. 2015-06-01 09:36:24 +10:00
Simon Sapin
ce1f2bab7b Fix up the splitting of the unit tests crate.
Closes #5707. (Includes a rebase of it.)
Fixes #5688.
2015-04-21 20:22:10 +02:00
Prabhjyot Singh Sodhi
7b9c9e1453 Split up the unit tests crate 2015-04-21 20:05:53 +02:00
Ms2ger
9be71b941f Remove the remaining traces of content tests. 2015-04-16 11:29:58 +02:00
Simon Sapin
ec28d98080 Have ./mach test-unit run nothing but cargo test -p unit_tests
All unit tests will move there, and it should be much faster to build
than every other crate together.

Fix #5291.
2015-04-08 01:07:54 +02:00
Matt Brubeck
32e5679175 mach test-unit -p should not build all tests
This changes the `mach test-unit -p foo` command to build only the requested
crate, not the entire `servo` crate.
2015-04-06 10:54:14 -07:00
Matt Brubeck
910869f63c Change mach test-unit parameter from -c to -p
For consistency with Cargo params, and related mach commands like
`mach update-cargo`.  The `-c` version is still available as an alias for
compatibility with old scripts.
2015-04-06 10:54:13 -07:00
James Graham
e31744e48e Better check that required modules are installed 2015-04-03 23:29:22 +01:00
James Graham
b2a5225831 Add support for running W3C CSS tests.
These are run through the same harness as the web-platform-tests.
2015-04-03 23:28:51 +01:00
James Graham
2bde318d24 Make the test-wpt mach command support all the command line arguments of wptrunner.
Also remove the shell script and ensure that default options are set in a single location
2015-04-03 23:28:51 +01:00
Ms2ger
5f15eb5fbf Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev. 2015-03-18 13:18:31 -04:00
Ms2ger
a8553c3606 Update web-platform-tests. 2015-03-17 22:02:43 +01:00
bors-servo
cf39c672b6 auto merge of #5210 : GreenRecycleBin/servo/#4968, r=jdm
`./mach test tests/wpt/web-platform-tests/html/browsers/history/the-location-interface/security_location_0.sub.htm` is still failing with the same message as reported in #3219.
2015-03-16 11:42:59 -06:00
Andreas Tolfsen
b951c2f963 tests: ensure bootstrapping for wpt 2015-03-15 18:03:40 +00:00
Daniel Le
0aa727e5b6 Add HOST_FILE environment variable for test-wpt 2015-03-14 18:45:34 +08:00
bors-servo
39273d6b53 auto merge of #5053 : deepak1556/servo/script_patch, r=jdm
fixes #5046
2015-02-28 12:57:50 -07:00
Robo
7b9241bddb default to number of available cpu for wpt-tests 2015-02-28 23:43:39 +05:30