summary refs log tree commit diff
path: root/src/compiletest
AgeCommit message (Collapse)AuthorLines
2013-09-19Turned extra::getopts functions into methodsMarvin Löbel-27/+25
Some minor api and doc adjustments
2013-09-18std: Remove {float,f64,f32}::from_str in favor of from_strblake2-ppc-2/+1
Like issue #9209, remove float::{from_str, from_str_radix} in favor of the two corresponding traits. The same for modules f64 and f32. New usage is from_str::<float>("1.2e34")
2013-09-12std: rename Option::unwrap_or_default() to unwrap_or()Erick Tryzelaar-1/+1
2013-09-05Rename str::from_bytes to str::from_utf8, closes #8985Florian Hahn-2/+2
2013-09-04Update clients of path.rs to use new API.Felix S. Klock II-3/+4
In most cases this involved removing a ~str allocations or clones (yay), or coercing a ~str to a slice. In a few places, I had to bind an intermediate Path (e.g. path.pop() return values), so that it would live long enough to support the borrowed &str. And in a few places, where the code was actively using the property that the old API returned ~str's, I had to put in to_owned() or clone(); but in those cases, we're trading an allocation within the path.rs code for one in the client code, so they neutralize each other.
2013-09-03auto merge of #8950 : sanxiyn/rust/cross-xfail, r=brsonbors-4/+23
2013-09-03Correctly determine OS to xfail in cross buildSeo Sanghyeon-4/+23
2013-09-02Raise the file descriptor limits when running compiletestAlex Crichton-0/+5
We already do this for libstd tests automatically, and compiletest runs into the same problems where when forking lots of processes lots of file descriptors are created. On OSX we can use specific syscalls to raise the limits, in this situation, though. Closes #8904
2013-08-30auto merge of #8886 : cmr/rust/test-restructure, r=cmrbors-19/+17
2013-08-30Revert "Teach compiletest to use multiple --src-base's"Corey Richardson-19/+17
This reverts commit 8a07f5708196dd72ec030018c2a215a4dd823b2e.
2013-08-30Revert "Teach the makefile to use multiple src-base's"Corey Richardson-1/+1
This reverts commit 43f851d2cb3976655078f032dc1a8cb88f1c8deb.
2013-08-30auto merge of #8839 : sanxiyn/rust/env, r=thestingerbors-10/+5
2013-08-29auto merge of #8458 : cmr/rust/test-restructure, r=brsonbors-17/+19
This should make benchmarks easier to understand. But, it doesn't work. BENCH_RS in mk/tests.mk has everything, from what I can tell in remake, but only those that are direct children of src/test/bench get build and run. @graydon, can you lend your expertise? I can't make heads or tails of this makefile.
2013-08-29Revert "auto merge of #8645 : alexcrichton/rust/issue-6436-run-non-blocking, ↵Brian Anderson-4/+29
r=brson" This reverts commit b8d1fa399402c71331aefd634d710004e00b73a6, reversing changes made to f22b4b169854c8a4ba86c16ee43327d6bcf94562. Conflicts: mk/rt.mk src/libuv
2013-08-28Android: Pass the environment when running testsSeo Sanghyeon-2/+5
2013-08-28Remove --newrt optionSeo Sanghyeon-8/+0
2013-08-28Teach the makefile to use multiple src-base'sCorey Richardson-1/+1
2013-08-28Teach compiletest to use multiple --src-base'sCorey Richardson-17/+19
2013-08-27Implement process bindings to libuvAlex Crichton-29/+4
Closes #6436
2013-08-26Since we assume that GDB output is UTF-8, make sure it is so on all platforms.Vadim Chugunov-1/+3
Otherwise it'll choose some "appropriate" platform-specific default (e.g. CP1252 on Windows).
2013-08-23test: add support for sharding testsuite by passing --test-shard=a.bGraydon Hoare-0/+12
2013-08-19compiletest: do not run tests in sub-threads if on valgrind.Graydon Hoare-1/+12
2013-08-17auto merge of #8531 : brson/rust/test-waitpid-workaround, r=graydonbors-2/+16
...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-14compiletest: Run tests in their own thread to avoid blocking the schedulerBrian Anderson-2/+16
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-14std: Change ProcessOptions struct to have an option of a ~ vectorTim Chevalier-1/+1
This is a workaround for #8498
2013-08-10std: Iterator.len_ -> .lenErick Tryzelaar-1/+1
2013-08-10std: Rename Iterator.transform -> .mapErick Tryzelaar-4/+4
cc #5898
2013-08-07rustc: Fix for-range loops that can use iteratorsblake2-ppc-2/+2
Transform range loops that can be regular iterator loops.
2013-08-07core: option.map_consume -> option.map_moveErick Tryzelaar-7/+7
2013-08-07option.get -> option.unwrapErick Tryzelaar-3/+2
2013-08-06auto merge of #8313 : msullivan/rust/cleanup, r=catamorphismbors-1/+0
2013-08-05Updated std::Option, std::Either and std::ResultMarvin Löbel-9/+9
- 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-05Get rid of some NOTEs.Michael Sullivan-1/+0
2013-08-03remove obsolete `foreach` keywordDaniel Micay-14/+14
this has been replaced by `for`
2013-08-03replace all remaining `for` with `foreach` or `do`Daniel Micay-10/+14
2013-08-02replace `range` with an external iteratorDaniel Micay-2/+1
2013-08-01migrate many `for` loops to `foreach`Daniel Micay-13/+13
2013-07-30Do not enforce two newlines after the optionsJordi Boggiano-0/+2
2013-07-29auto merge of #8003 : crnobog/rust/case-insensitive-error-prefix, r=cmrbors-1/+26
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-26auto merge of #7979 : crnobog/rust/auxfiles-path-windows, r=cmrbors-1/+1
2013-07-24fix fmt! usageDaniel Micay-1/+1
2013-07-23Compare file:line prefix case-insensitively on win32crnobog-1/+26
Paths are case insensitive on windows and rustc and compiletest may disagree on casing. Fixes test compile-fail/circular_modules_main
2013-07-22Change libaux directory to fix aux crate tests on Windowscrnobog-1/+1
2013-07-21Remove what appears to be redundant indirection fromGareth Smith-5/+5
os::list_dir_path.
2013-07-17compiletest: Remove stray copies.Patrick Walton-4/+4
2013-07-17test: Fix tests.Patrick Walton-20/+2
2013-07-17test: Fix tests.Patrick Walton-4/+23
2013-07-17librustc: Remove all uses of "copy".Patrick Walton-17/+19
2013-07-16compiletest: Add support for metrics and ratchet modes.Graydon Hoare-9/+68
2013-07-11extra: add explicit ratchet-noise-percent option to benchmark ratchet, plus ↵Graydon Hoare-4/+5
a few test breaking fixes.