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
Matthew Rasmus
f69dfc53cb
Moved unit tests to the end of ./mach test
2014-12-04 14:05:46 -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
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