Commit graph

85 commits

Author SHA1 Message Date
Glenn Watson
e48619b6ec Remove glut from update-cargo command. 2014-12-12 12:02:03 +10:00
Glenn Watson
9d192de63d Switch android to glutin. 2014-12-12 08:13:04 +10:00
Glenn Watson
738e1643d6 Update ./mach update-cargo to include gonk Cargo.lock 2014-12-11 10:58:06 +10:00
Patrick Walton
8b2aadc30b ports/cef: Implement accelerated compositing for the CEF port. 2014-12-10 08:35:47 -08:00
Simon Sapin
3fdbb4bfbb mach clean-snapshots: better no-op output 2014-12-09 09:44:24 +00:00
Simon Sapin
b337b0e5e0 Add a ./mach clean-snapshots command to remove old Cargo and Rust.
Bootstrapping automatically downloads new Rust and Cargo snapshots
as needed into versioned directories,
but do not remove now-unused versions.
This is the desired behavior for `git bisect` to be usable.

However, this means that old version keep accumulating, taking up disk space.
This adds a mach command to remove snapshots other than the ones
currently being used.
It is never run automatically.

To be safe, the command defaults to only printing what would be removed,
and only removes stuff when run with a `-f` argument.
2014-12-09 09:31:23 +00:00
bors-servo
2741fd2e13 auto merge of #4292 : glennw/servo/android-ssl, r=mbrubeck
The glut makefile will be removed shortly after glutin lands
for android, so we need to build openssl for android elsewhere
in the build process.
2014-12-08 17:54:57 -07:00
bors-servo
1458bb4397 auto merge of #4288 : mttr/servo/mach_update_cargo_fix, r=jdm
Also fixed a bug if run with no arguments.
2014-12-08 17:03:59 -07:00
bors-servo
35c13f07bf auto merge of #4286 : andreastt/servo/ato/concat_error_on_system_rust, r=metajack
Since default argument to params is None, concatenating it with a
list will raise an error.  This behaviour prevents `./mach rustc`
to be called when system-rust is defined in .servobuild.

Currently it will only work when followed by an argument, i.e.
`./mach rustc -arg`.

Testing this patch: `./mach rustc` should not raise an error.
2014-12-08 15:28:03 -07:00
Glenn Watson
030dab553e Use mach to build openssl on android instead of glut makefile.
The glut makefile will be removed shortly after glutin lands
for android, so we need to build openssl for android elsewhere
in the build process.
2014-12-09 08:20:36 +10:00
Matthew Rasmus
63d1651cb9 Updates ./mach update-cargo for new path changes
Also fixed a bug if run with no arguments.
2014-12-08 13:16:20 -08:00
Andreas Tolfsen
f716e8bbf1 Fix concatentation error on no args to ./mach rustc
Since default argument to params is None, concatenating it with a
list will raise an error.  This behaviour prevents `./mach rustc`
to be called when system-rust is defined in .servobuild.

Currently it will only work when followed by an argument, i.e.
`./mach rustc -arg`.

Testing this patch: `./mach rustc` should not raise an error.
2014-12-08 17:12:38 +00:00
Glenn Watson
b12311ada5 Fix path for CEF build. 2014-12-08 07:36:56 +10:00
Matthew Rasmus
2bdf84d5f7 Fix breakage of ./mach test
When running commands through Registrar.dispatch, mach does not behave
in the same way it would as if it were running through the command line.
Defaults normally provided through a combination of @CommandArgument and
argparse magic are ignored.

I have some ideas as to how to fix this, but until then, this will allow
`./mach test` to run through test-unit properly.
2014-12-06 09:23:10 -08:00
bors-servo
2d0e96e133 auto merge of #4229 : mttr/servo/mach_unit_test_select_component, r=Manishearth
Example usage:

`./mach test-unit -c style`
2014-12-06 04:49:00 -07:00
bors-servo
1046839e8c auto merge of #4231 : mttr/servo/mach_test_fix, r=jdm
Somehow didn't catch this when renaming a variable.
2014-12-05 03:13:09 -07:00
bors-servo
a451a3bdb5 auto merge of #4240 : Manishearth/servo/tidy, r=SimonSapin 2014-12-05 00:49:10 -07:00
Manish Goregaokar
f6b6687e53 Make tidy ingore new target dir 2014-12-04 22:21:42 -08:00
Matthew Rasmus
fd5d4fffd7 Mach test inference fix 2014-12-04 16:55:01 -08:00
Matthew Rasmus
19d119785c Last second bug catch 2014-12-04 16:19:56 -08:00
Matthew Rasmus
0aa6d9c28e Adds a --component (or -c) argument to test-unit
Example usage:

`./mach test-unit -c style`
2014-12-04 16:16:15 -08:00
Matthew Rasmus
3d5fa7b6e2 PEP8 line length fixes in testing_commands.py
...so that PyLint stops yelling at me
2014-12-04 16:12:22 -08:00
Simon Sapin
2b7eb1ca1e Fix 'mach browse-doc' to use the right target directory. 2014-12-03 15:59:51 -08:00
Simon Sapin
7efad39ccd Make 'mach doc' not fail when components/servo/target doesn’t exist. 2014-12-03 15:50:21 -08:00
Simon Sapin
96c3c6fd43 Replace mach serve-docs by mach browse-doc, fix #3913 2014-12-02 21:49:30 -08:00
Simon Sapin
d25c66904e Have 'mach doc' copy Rust documentation. 2014-12-02 21:48:52 -08:00
Simon Sapin
9bbc633ced Don’t try to run unit tests for the servo crate.
There are none, but the contenttest program fails with:

```
task '<main>' panicked at 'Required option 'source-dir' missing.', ../../tests/contenttest.rs:48
```
2014-12-02 18:04:06 -08:00
Simon Sapin
14e28f6654 Have ./mach cargo not change to components/servo.
`ports/android/glut` relies on it executing on the current directory.
2014-12-02 18:04:06 -08:00
Simon Sapin
cc4ea7507f Make build system more independent of current directory. 2014-12-02 18:04:06 -08:00
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
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