Commit graph

96 commits

Author SHA1 Message Date
Glenn Watson
0f525d908d Change glutin headless mode to be a build config, as it breaks some Linux distros linking to both.
The majority of this change is simply re-arranging the code in the glutin port
so that the windowed/headless code is configured at build time rather
than runtime. There shouldn't be any functional difference as a result of this change.
2015-01-23 06:09:25 +10:00
Glenn Watson
6dd12855ac Android doesn't need to explicitly specify glutin now. 2015-01-20 07:53:47 +10:00
Ms2ger
394f816343 Disallow lines that span more than 160 columns.
The Rust style guide suggests 100, but we have too many violations in the
tree already. This check can be tightened over time.
2015-01-19 13:48:32 +01:00
Glenn Watson
7818576213 Update android openssl version due to security advisory https://www.openssl.org/news/secadv_20150108.txt 2015-01-09 07:40:17 +10:00
Ms2ger
16c7060bc8 Update rustc to revision 2cfb5acb5a2751c759627377e602bac4f88f2d19. 2015-01-08 09:58:46 -05:00
Thomas Jespersen
9b1fd5a05f Check for no parameters when invoking cargo 2015-01-05 11:03:51 +01:00
Ms2ger
a2521c7e01 Add a test that wptrunner fails when it should. 2014-12-23 11:22:10 +01:00
bors-servo
f06e0a818d auto merge of #4048 : mttr/servo/mach_unit_test_fix, r=larsbergstrom
This is a quick and dirty workaround for issue #3928. Basically, `cargo test` is deleting `./target/servo`, which is clearly not ideal if we want to do anything with servo after running the unit tests. This PR makes sure to rebuild after running `./mach test-unit`.

I'm not familiar enough with cargo yet to know why it's doing this or what better alternatives there are to fixing this. Having to rebuild afterwards feels pretty ugly to me, but my rationalization right now is that the time it takes to build is negligible in comparison to the time it takes to run the tests. Ideally, this should be something we could take care of in Cargo.toml, but again, I'm new to this (and the documentation seems less than helpful from what I can tell so far).

I won't be available for the rest of the day, so if anyone has suggestions, or wants to wait for a better solution, I'll get back to it tomorrow probably. Otherwise, this PR at least makes `./mach test` work properly, so there's that.
2014-12-22 14:05:34 -07:00
Simon Sapin
32c721e640 Have 'mach build' pass arbitrary arguments to Cargo.
Duplicating all of Cargo’s argument parsing in mach is silly.
2014-12-18 11:15:42 +00:00
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
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