Seo Sanghyeon
97b542bd84
Android: Pass the environment when running tests
2013-08-28 21:44:55 +09:00
Seo Sanghyeon
fcce7e82db
Remove --newrt option
2013-08-28 21:25:12 +09:00
Corey Richardson
43f851d2cb
Teach the makefile to use multiple src-base's
2013-08-28 08:16:21 -04:00
Corey Richardson
8a07f57081
Teach compiletest to use multiple --src-base's
2013-08-28 08:16:19 -04:00
Alex Crichton
b89e1c000e
Implement process bindings to libuv
...
Closes #6436
2013-08-27 20:46:43 -07:00
Vadim Chugunov
a903f741b0
Since we assume that GDB output is UTF-8, make sure it is so on all platforms.
...
Otherwise it'll choose some "appropriate" platform-specific default (e.g. CP1252 on Windows).
2013-08-26 01:23:17 -07:00
Graydon Hoare
2fb5c49abb
test: add support for sharding testsuite by passing --test-shard=a.b
2013-08-23 15:30:23 -07:00
Graydon Hoare
610b2b58ec
compiletest: do not run tests in sub-threads if on valgrind.
2013-08-19 15:09:20 -07:00
bors
8ac17731eb
auto merge of #8531 : brson/rust/test-waitpid-workaround, r=graydon
...
...er
I believe the calls to waitpid are interacting badly with the message passing that goes
on between schedulers and causing us to have very little parallelism in
the test suite. I don't fully understand the sequence of events that causes
the problem here but clearly blocking on waitpid is something that a
well-behaved task should not be doing.
Unfortunately this adds quite a bit of overhead to each test: one thread, two
tasks, three stacks, so there's a tradeoff. The time to execute run-pass on
my 4-core machine goes from ~750s to ~300s.
This should have a pretty good impact on cycle times.
cc @toddaaro
2013-08-17 00:22:05 -07:00
Brian Anderson
15fca2dad7
compiletest: Run tests in their own thread to avoid blocking the scheduler
...
The calls to waitpid are interacting badly with the message passing that goes
on between schedulers and causing us to have very little parallelism in
the test suite. I don't fully understand the sequence of events that causes
the problem here but clearly blocking on waitpid is something that a
well-behaved task should not be doing.
Unfortunately this adds quite a bit of overhead to each test: one thread, two
tasks, three stacks, so there's a tradeoff. The time to execute run-pass on
my 4-core machine goes from ~750s to ~300s.
2013-08-14 23:41:31 -07:00
Tim Chevalier
cf4694e73b
std: Change ProcessOptions struct to have an option of a ~ vector
...
This is a workaround for #8498
2013-08-14 16:52:05 -07:00
Erick Tryzelaar
f9dee04aaa
std: Iterator.len_ -> .len
2013-08-10 07:33:22 -07:00
Erick Tryzelaar
68f40d215e
std: Rename Iterator.transform -> .map
...
cc #5898
2013-08-10 07:33:21 -07:00
blake2-ppc
8523f6d643
rustc: Fix for-range loops that can use iterators
...
Transform range loops that can be regular iterator loops.
2013-08-07 22:39:57 -04:00
Erick Tryzelaar
1e490813b0
core: option.map_consume -> option.map_move
2013-08-07 08:52:09 -07:00
Erick Tryzelaar
5c08237456
option.get -> option.unwrap
2013-08-07 08:16:37 -07:00
bors
3dfb55ab09
auto merge of #8313 : msullivan/rust/cleanup, r=catamorphism
2013-08-06 08:44:05 -07:00
Marvin Löbel
0ac7a219f0
Updated std::Option, std::Either and std::Result
...
- Made naming schemes consistent between Option, Result and Either
- Changed Options Add implementation to work like the maybe monad (return None if any of the inputs is None)
- Removed duplicate Option::get and renamed all related functions to use the term `unwrap` instead
2013-08-05 22:42:21 +02:00
Michael Sullivan
7dbc5ae79f
Get rid of some NOTEs.
2013-08-05 12:30:28 -07:00
Daniel Micay
1008945528
remove obsolete foreach
keyword
...
this has been replaced by `for`
2013-08-03 22:48:02 -04:00
Daniel Micay
b3ad685f7f
replace all remaining for
with foreach
or do
2013-08-03 03:00:42 -04:00
Daniel Micay
234acad404
replace range
with an external iterator
2013-08-02 00:51:14 -04:00
Daniel Micay
1fc4db2d08
migrate many for
loops to foreach
2013-08-01 05:34:55 -04:00
Jordi Boggiano
f7ebab4403
Do not enforce two newlines after the options
2013-07-30 18:40:01 +02:00
bors
63c9b112b5
auto merge of #8003 : crnobog/rust/case-insensitive-error-prefix, r=cmr
...
Paths are case insensitive on windows and rustc and compiletest may disagree on casing.
Fixes test compile-fail/circular_modules_main on win32
2013-07-29 07:31:24 -07:00
bors
5c4cd30f80
auto merge of #7979 : crnobog/rust/auxfiles-path-windows, r=cmr
2013-07-26 17:49:40 -07:00
Daniel Micay
254339fd39
fix fmt! usage
2013-07-24 09:45:20 -04:00
crnobog
6f4e2b2147
Compare file:line prefix case-insensitively on win32
...
Paths are case insensitive on windows and rustc and compiletest may disagree on casing.
Fixes test compile-fail/circular_modules_main
2013-07-23 19:24:54 +01:00
crnobog
46394758aa
Change libaux directory to fix aux crate tests on Windows
2013-07-22 23:15:20 +01:00
Gareth Smith
a6263694ff
Remove what appears to be redundant indirection from
...
os::list_dir_path.
2013-07-21 18:33:29 +01:00
Patrick Walton
d300a64520
compiletest: Remove stray copies.
2013-07-17 18:03:48 -07:00
Patrick Walton
dc4bf173f8
test: Fix tests.
2013-07-17 14:57:55 -07:00
Patrick Walton
2dbb3c3887
test: Fix tests.
2013-07-17 14:57:54 -07:00
Patrick Walton
99b33f7219
librustc: Remove all uses of "copy".
2013-07-17 14:57:51 -07:00
Graydon Hoare
bc4c89c10a
compiletest: Add support for metrics and ratchet modes.
2013-07-16 09:33:54 -07:00
Graydon Hoare
bbdbd3c69d
extra: add explicit ratchet-noise-percent option to benchmark ratchet, plus a few test breaking fixes.
2013-07-11 15:16:11 -07:00
Graydon Hoare
e14cd392a4
initial sketch of codegen mode for compiletest; doesn't measure / compare / ratchet the disassembly yet
2013-07-11 13:15:52 -07:00
Alex Crichton
8552a74775
Bring compiletest/rustpkg/driver up to date on std vs core
2013-07-04 16:30:48 -07:00
Huon Wilson
f19fb2459f
Remove standalone comparison functions in vec, make the trait impls better.
2013-07-04 00:46:50 +10:00
Huon Wilson
c437a16c5d
rustc: add a lint to enforce uppercase statics.
2013-07-01 17:52:57 +10:00
bors
07feeb95c5
auto merge of #7487 : huonw/rust/vec-kill, r=cmr
...
Continuation of #7430 .
I haven't removed the `map` method, since the replacement `v.iter().transform(f).collect::<~[SomeType]>()` is a little ridiculous at the moment.
2013-06-30 21:14:13 -07:00
Brian Anderson
a766a955a9
Bump version from 0.7-pre to 0.7
2013-06-30 16:36:48 -07:00
Huon Wilson
c0a20d2929
Remove vec::{map, mapi, zip_map} and the methods, except for .map, since this
...
is very common, and the replacement (.iter().transform().collect()) is very
ugly.
2013-06-30 21:59:44 +10:00
Patrick Walton
a1531ed946
librustc: Remove the broken overloaded assign-ops from the language.
...
They evaluated the receiver twice. They should be added back with
`AddAssign`, `SubAssign`, etc., traits.
2013-06-28 10:44:16 -04:00
bors
63afb8ccc8
auto merge of #7430 : huonw/rust/vec-kill, r=thestinger
2013-06-27 15:01:58 -07:00
Huon Wilson
d2e3e1e52b
Convert vec::{head, tail, init, last} (and similar fns) to methods.
2013-06-27 22:37:00 +10:00
Huon Wilson
d0512b1055
Convert vec::[mut_]slice to methods, remove vec::const_slice.
2013-06-27 22:36:09 +10:00
Brian Anderson
332671c479
Whitespace
2013-06-26 15:34:12 -07:00
Brian Anderson
5d3ca4b843
Merge remote-tracking branch 'mozilla/master' into incoming
...
Conflicts:
src/librustc/middle/astencode.rs
src/librustc/middle/check_const.rs
2013-06-25 19:32:00 -07:00
Daniel Micay
e67c48a591
remove each
from vec, HashMap and HashSet
2013-06-25 16:28:02 -04:00