Commit graph

117 commits

Author SHA1 Message Date
Ms2ger
322bf23db8 Make 'args' a list in the mach run handler.
This fixes a regression from 894e58f714.
2015-02-24 11:19:13 +01:00
Nathan Froyd
894e58f714 add basic |mach rr-{record,replay}| commands
These are very basic commands for invoking Servo underneath rr.  rr
currently doesn't support all the syscalls that Servo requires, but
that's easy to fix on the rr side.

Fixes #4177.
2015-02-23 23:05:41 -05:00
Prabhjyot Singh Sodhi
12e2f30617 changin os.exit to sys.exit
Fixes #5009
2015-02-22 02:06:07 +05:30
Manish Goregaokar
2711d00666 Remove dependency on backup-flame dir
We should be using the one in the product target dir instead.

This makes the B2G deps distributable again
2015-02-21 09:42:47 +05:30
Manish Goregaokar
5b3868089e Add ./mach build-gonk command 2015-02-21 09:42:47 +05:30
bors-servo
ff10deb814 auto merge of #4992 : psdh/servo/cargodir, r=Manishearth
Fixes #4976
2015-02-20 16:24:53 -07:00
Prabhjyot Singh Sodhi
a0a5130061 ./mach cargo now cd's to servo dir if in root
Fixes #4976
2015-02-21 03:18:42 +05:30
awlnx
d8f1c10179 fixes issue #4103 2015-02-18 18:11:22 -05:00
Prabhjyot Singh Sodhi
7911c0c145 Mach bootstrapping will sync modules
Fixes #4916
2015-02-19 01:39:27 +05:30
bors-servo
b70e3cc5be auto merge of #4877 : psdh/servo/imperror, r=jdm
#4874
2015-02-18 11:33:55 -07:00
awlnx
1e8cc99ff3 Fixes #4898. 2015-02-13 00:38:26 -05:00
Prabhjyot Singh Sodhi
1ff95c33ca improving mach run error message in case of missing binaries 2015-02-13 00:20:01 +05:30
Prabhjyot Singh Sodhi
d322811bfb adding --release flag to mach run command 2015-02-06 00:42:31 +05:30
bors-servo
3da41c2b16 auto merge of #4816 : mskrzypkows/servo/mskrzypkows_b, r=jdm
Sorry again the same pull request because I accidentally removed commit from branch.
2015-02-03 07:09:52 -07:00
Manish Goregaokar
3fd8e2da27 Fix the docs again 2015-02-03 16:47:44 +05:30
Manish Goregaokar
954a044570 Import registrar 2015-02-03 15:41:47 +05:30
Manish Goregaokar
a3cab14183 Fix doc upload 2015-02-03 00:14:45 +05:30
Maciej Skrzypkowski
9befde7be5 Added "-j" flag usage for building OpenSSL for android. 2015-02-02 12:23:55 +01:00
Glenn Watson
f495884dcb Remove the glfw port (it doesn't compile since last rustup anyway). 2015-02-02 10:38:12 +10:00
Matt Brubeck
53135b2566 Move snapshot dir inside the source dir by default
This avoids changing any directories outside the repo, which is better for
some automation scenarios.

The servobuild.example file has a "cache-dir" setting that restores the
previous default location of `~/.servo`, which is useful for developers
working with multiple clones on the same machine.
2015-01-28 10:33:04 -08:00
Josh Matthews
95fc29fa0d Update rustc to 00b112c45a604fa6f4b59af2a40c9deeadfdb7c6/rustc-1.0.0-dev. 2015-01-28 10:16:49 +10:00
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