Commit graph

907 commits

Author SHA1 Message Date
Simon Sapin
2f413c8937 Move the servo crate from root to components/servo 2014-12-02 18:03:39 -08:00
bors-servo
c91e949ed0 auto merge of #4169 : IdeaHat/servo/fix-mach-unit-test-filter, r=jdm
Minor change, added unit test filter to components so that ./mach test-unit [test-filter] works in line with documentation.

I'd personally like to also make filters on the components as well as the tests. This would change the interface (probably to ./mach test-unit [component-filter] [test-filter]), but change is NOT in this pull request.
2014-12-02 18:15:51 -07:00
Nathan Climer
2dc0b8973d Fixed test filter 2014-12-01 16:49:04 -05:00
Matthew Rasmus
3a6b6792ae infer_test_by_dir cleanup
No actual change in functionality here. I was just unhappy with the way
test-ref was singled out before, and realized an obvious fix.
2014-12-01 12:51:49 -08:00
bors-servo
b87d98e468 auto merge of #4093 : mttr/servo/mach_reftest_by_file, r=jdm
`./mach test-ref` no longer eats the first "-" prefixed argument for test name filtering, instead using an explicit "--name" argument. This should avoid any potential confusion when passing down arguments to servo.

Also allows for ./tests/ref to be included (and trimmed away) for tab completion convenience (`./mach test` has also been updated to take advantage of this when inferring tests from file paths).

(fixes #4091)
2014-11-29 01:12:42 -07:00
Matt Murphy
b4171b41e1 Remove default value for params in mach doc #4134 2014-11-28 08:57:07 -06:00
Matthew Rasmus
27a9460d52 Adds explicit --name argument to test-ref
In addition, `./mach test` will now take advantage of this when
inferring test suites from test files.
2014-11-24 16:26:56 -08:00
Matthew Rasmus
8f4f6407d4 Lets ./mach test infer testsuite from file
Usage Example:
```
$ ./mach test tests/wpt/web-platform-tests/dom/interfaces.html
 0:00.27 LOG: MainThread INFO Using 1 client processes
 ...
```

Note that while there is no functionality for `test-ref` to accept
individual files, `./mach test tests/ref` will still trigger `test-ref`.
2014-11-24 12:01:21 -08:00
Matthew Rasmus
c0eca8f4c0 Adds --debug and --debugger flags to ./mach run 2014-11-23 23:36:32 -08:00
Matthew Rasmus
f0d5083557 mozilla-central modules for debugger detection
Borrows two python modules from mozilla-central to give mach the ability
to detect and pass arguments to a system's preferred debugger.

Links to borrowed files:
http://hg.mozilla.org/mozilla-central/file/c9cfa9b91dea/testing/mozbase/mozinfo/mozinfo/mozinfo.py
http://hg.mozilla.org/mozilla-central/file/c9cfa9b91dea/testing/mozbase/mozdebug/mozdebug/mozdebug.py
2014-11-23 23:21:28 -08:00
Matthew Rasmus
8cb7a6842f Remove allow_all_args from mach commands 2014-11-23 16:45:40 -08:00
Matthew Rasmus
850da49846 Update mach to latest changes from mozilla-central
Updates the way mach mixes unrecognized arguments and predefined
arguments (see [mozilla bug
1076649](https://bugzilla.mozilla.org/show_bug.cgi?id=1076649) for
details on this change).
2014-11-23 16:29:29 -08:00
Matthew Rasmus
d300469bbd Adds --release flag to ./mach build-cef
Requested by kmc in IRC.

```
11:36 < kmc> while you're mach-ing about, can you modify build-cef to
accept --release like build does?
```
2014-11-23 11:44:53 -08:00
bors-servo
af42f1afc1 auto merge of #4072 : frewsxcv/servo/test-files, r=jdm
Fixes #3910
2014-11-23 11:57:36 -07:00
Corey Farwell
cb38675f48 Make sure directories aren't getting tested 2014-11-23 13:13:53 -05:00
nwin
45a4236fb0 Fixes 4037. Enable backtrace on run cmd. 2014-11-23 10:51:46 +01:00
Matthew Rasmus
655dd453bd Run a single WPT test from a relative path
Fixes #4055
2014-11-21 13:52:18 -08:00
Matthew Rasmus
465546ee08 Rebuild after ./mach test-unit
(ugly) workaround for issue #3928
2014-11-20 11:10:47 -08:00
Matthew Rasmus
3a43abfa35 Added a mach command for cargo update
As proposed in #3736

Example usage:

``` sh
$ ./mach update-cargo -p rust-xml
.
    Updating git repository `https://github.com/netvl/rust-xml`
ports/cef
    Updating git repository `https://github.com/netvl/rust-xml`
ports/android/glut_app
    Updating git repository `https://github.com/netvl/rust-xml`
```
2014-11-19 20:55:04 -08:00
Matt Brubeck
3cacb029cc Use the correct Rust path in Android packaging 2014-11-14 13:01:46 -08:00
Simon Sapin
1a684f8279 Download Cargo over HTTPS. Fix #3582. 2014-11-13 18:13:39 +00:00
Fabrice Desré
8eb4844174 Issue #3804 : Allow enabling debug-mozjs from servobuild config 2014-11-06 22:47:02 -08:00
bors-servo
0e6a67c76b auto merge of #3907 : Munksgaard/servo/serve-docs, r=jdm
This enables the user to run `./mach serve-docs` (with an optional port
number), starting a local web server that hosts the documentation for
Servo and Rust.

This closes #3807
2014-11-05 20:39:33 -07:00
bors-servo
5dae1de2f5 auto merge of #3902 : mbrubeck/servo/share_directory, r=jdm
This is @acmiyaguchi's already-reviewed patch from #3388, rebased and squashed onto servo master. Fixes #3353.
2014-11-05 18:51:36 -07:00
Matt Brubeck
2ee516fa7c Automatically update cargo when necessary 2014-11-05 14:07:02 -08:00
Orvar Segerström
1641568b05 Panic when bootstrap downloads fail
Also hints that 32bit snapshots are unavailable on failure

Resolves #3739

fixup! Panic when bootstrap downloads fail
2014-11-05 22:31:57 +01:00
Anthony Miyaguchi
75b340a243 Fixes #3353: rust snapshot downloads to home directory 2014-11-05 11:14:21 -08:00
Philip Munksgaard
04146c934b Add serve-docs command to mach
This enables the user to run `./mach serve-docs` (with an optional port
number), starting a local web server that hosts the documentation for
Servo and Rust.

This closes #3807
2014-11-05 13:58:59 +01:00
Josh Matthews
a1b2f4b590 Add an optional --debug-mozjs argument to mach build that enables a non-optimized, debug build of mozjs and rust-mozjs. Update the Cargo snapshot to enable new feature support. 2014-10-24 16:18:25 -04:00
Fabrice Desré
38ccbe61ae Update toml.py to upstream 1069d2449760525535ca77514a92e9237ee0deaf 2014-10-20 22:20:15 -07:00
Matt Brubeck
77d32ee447 Move windowing code out of the compositor
This is mainly just moving code around, in preparation for further changes to
the "windowing" API.
2014-10-10 11:36:12 -07:00
Ms2ger
3659fe142b Fetch the Cargo nightly over HTTP. 2014-10-06 17:29:14 +02:00
Ms2ger
e4eaf88179 Pin Cargo to the 2014-10-02 nightly.
Relevant to #3580.
2014-10-06 17:05:06 +02:00
Matt Brubeck
b736256d53 Add Android build config to mach/servobuild 2014-10-03 14:29:54 -07:00
Jack Moffitt
7f6f072b02 Fix up and run unit tests.
This adds the subpackages to `./mach test-unit`.
2014-10-02 23:14:42 -06:00
Jack Moffitt
f93dd447b1 Add --verbose to build-cef command 2014-10-02 11:32:00 -06:00
Simon Sapin
04d839328b Have the Rust snapshot directory include the Rust version and hash.
That way, whenever rust-snapshot-hash changes, mach will look for
the Rust snapshot in a different directory and re-boostrap as needed.

However, older rust version will be left behind never cleaned up.
This is good for git-bisect, but not for disk space:
the current snapshot is 618 MB.

In the future, we may want `mach clean` or some other comment
to remove unused Rust snapshots.

CC #3388
2014-09-29 17:41:45 +01:00
Simon Sapin
516b608a2f Add a 'mach rust-root' command. 2014-09-29 17:41:45 +01:00
Simon Sapin
cd45258bf3 Fix /python/servo code formatting.
(My editor screams at me for flake8 lint errors.)
2014-09-26 23:12:51 +01:00
Simon Sapin
f329de0581 Have mach update (not just init) submodules as needed. Fix #3447 2014-09-22 00:16:52 +01:00
Andreas Tolfsen
a5b5d358fb Support dumb terminals in bootstrap downloads
Dumb terminals can only interpret a limited number of control codes,
and rewriting the terminal buffer will make `./mach build` very talkative
on these terminals.

This can be tested by setting the environment variable TERM to "dumb"
as such:

	TERM=dumb ./mach build
2014-09-18 12:16:49 +01:00
Matt Brubeck
340ebdfd85 Merge pull request #3372 from mbrubeck/wpt-params
Make test_wpt params optional. r=me
2014-09-17 17:05:59 -07:00
Tetsuharu OHZEKI
b0cd45e2da Fix mach cargo is missing 2014-09-17 11:52:05 +09:00
Matt Brubeck
4154d3291b Make test_wpt params optional
Fixes an exception in `mach test`.
2014-09-16 09:38:22 -07:00
Matt Brubeck
e69fbc22de Don't throw on non-zero exit in mach commands
Fixes #3344.
2014-09-15 08:32:46 -07:00
Jack Moffitt
203144e207 Merge pull request #3334 from mbrubeck/mach-rustc
Add a `mach rustc` command
2014-09-14 13:38:30 -06:00
Matt Brubeck
2df61655cc Add a mach rustc command 2014-09-14 11:46:18 -07:00
Matt Brubeck
e6b31a616f Add more arguments to mach test commands 2014-09-12 21:57:07 -07:00
Tetsuharu OHZEKI
8bed778a3d Add 'mach clean'. 2014-09-13 04:39:18 +09:00
Dirk Leifeld
f2a692e0ff Add -v or --verbose to mach build 2014-09-11 18:46:18 +02:00