about summary refs log tree commit diff
path: root/src/test
AgeCommit message (Collapse)AuthorLines
2011-08-02Add dedicated pretty-printer tests with new pp-exact directiveBrian Anderson-6/+67
Add a new src/test/pretty directory to hold just source files for testing the pretty-printer. Add a new pp-exact directive. When this directive is followed by a file name it specifies a file containing the output that the pretty-printer should generate. When pp-exact is not followed by a filename it says that the file should pretty-print as written.
2011-08-02Pretty-print test the rfail tests. Issue #789Brian Anderson-0/+2
2011-08-02Add xfail-pretty directives to tests that don't pretty-print correctlyBrian Anderson-2/+19
Issue #789
2011-08-02Remove test/run-pass/simple-qsortBrian Anderson-23/+0
This is part of stdtest now
2011-08-02Add xfail-pretty test directive. Issue #789Brian Anderson-3/+9
Indicates that this test should not be used to test the pretty-printer
2011-08-02Run pretty-printed sources through the compiler again for sanityBrian Anderson-4/+10
Just go as far as typechecking for speed sake. Issue #789
2011-08-02Implement test that pretty-printed code converges. Issue #789Brian Anderson-10/+101
2011-08-02Remove unused procsrv::clone function from compiletestBrian Anderson-7/+0
2011-08-02Fix comment typo in compiletestBrian Anderson-1/+1
2011-08-02Pretty-print tests only run on .rs files. Issue #789Brian Anderson-5/+22
The pretty-printer can't handle .rc files currently
2011-08-02Introduce pretty-print testing mode to compiletest. Issue #789Brian Anderson-2/+19
2011-08-02Replace an open-coded conversion with ivec::from_vecBrian Anderson-6/+1
2011-08-02Move compiletest modules into separate filesBrian Anderson-587/+617
2011-08-02Copy locals created by destructuring on the content of a boxMarijn Haverbeke-0/+10
This is required so that assigning to these locals doesn't clobber the content of the box. (A possible optimization would be to only do this copying for locals that actually are assigned to.)
2011-08-02Move ppaux::ty_to_str to new record syntaxMarijn Haverbeke-3/+3
2011-08-01Handle bang functions correctly in typestateTim Chevalier-0/+4
The logic for how the "returns" constraint was handled was always dodgy, for reasons explained in the comments I added to auxiliary::fn_info in this commit. Fixed it by adding distinct "returns" and "diverges" constraints for each function, which are both handled positively (that is: for a ! function, the "diverges" constraint must be true on every exit path; for any other function, the "returns" constraint must be true on every exit path). Closes #779
2011-08-01Add std::str::is_whitespaceBrian Anderson-0/+9
2011-08-01Add std::str::trim/trim_left/trim_rightBrian Anderson-0/+30
2011-08-01Add std::char_sliceBrian Anderson-0/+7
2011-08-01Ignore whitespace in argument lists in compiletestBrian Anderson-1/+20
Makes testing work with DEBUG=1
2011-08-01Added send and receive to comm library.Eric Holk-0/+12
2011-08-01Objectified library chans and ports.Eric Holk-1/+1
2011-08-01Started working on a library-based comm system. Creating and deleting ports ↵Eric Holk-0/+62
work.
2011-08-01Add tests for destructuring localsMarijn Haverbeke-0/+37
2011-07-29Add a task spawning benchmarkBrian Anderson-0/+29
This is the kind of workload that the test runner generates - lots of tiny little tasks - and currently it leaves the CPU underutilized.
2011-07-29Enable kind checking on typarams, fix kind constraints in library and comp.Graydon Hoare-3/+3
2011-07-29Reduced test case for current backwarding bug.Lindsey Kuper-0/+35
Still working on getting backwarding to play nicely with self and overriding. Currently can't fix issue #702 without breaking how self and overriding interact.
2011-07-29Test case for previous commitTim Chevalier-0/+5
2011-07-29Fix long linesBrian Anderson-3/+3
2011-07-29Add issue numbers to FIXMEs in compiletestBrian Anderson-2/+2
2011-07-29Close pipes under failure scenario in compiletestBrian Anderson-1/+5
2011-07-29Get compile tests to run in parallelBrian Anderson-31/+86
Takes a lot of workarounds. The biggest problem is that boxes still don't seem to be moved across channels and bad things happen when the receiver destroys them. So there's all sorts of defensive cloning and scoping going on here to make the box lifetimes come out right.
2011-07-29Disallow overloading a method with one of different type. Closes #703.Lindsey Kuper-7/+3
2011-07-29Turn on kind propagation for typarams. Annotate a bunch of typarams in rustc ↵Graydon Hoare-1/+1
and libstd.
2011-07-29Remove support for obj dtorsMarijn Haverbeke-185/+0
2011-07-29Replace obj dtors with resources in stdlib and rustcMarijn Haverbeke-1/+1
2011-07-29Fix iter_structural_ty_full for resource typesMarijn Haverbeke-0/+19
The compiler would blow up when compiling a structural type containing a resource.
2011-07-28Drop the previous reference when receiving. Closes #763Brian Anderson-3/+38
2011-07-28Reenable expr-scope test. Disable under check-fastBrian Anderson-5/+1
2011-07-28Change macro syntax to accept a single expr, not a sequence of exprs.Paul Stansifer-11/+11
2011-07-28Made task threads wait instead of sleep, so they can be woken up. This ↵Eric Holk-1/+0
appears to give us much better parallel performance. Also, commented out one more unsafe log and updated rust_kernel.cpp to compile under g++
2011-07-28Adding a function to stdlib to set the min stack size, for programsEric Holk-5/+11
that absolutely will not succeed with a large default stack. This should be removed once we have stack grown working. Also updated word-count to succeed under the new test framework.
2011-07-28Re-removing a test case that was moved during the big test suite overhaul.Eric Holk-41/+0
2011-07-28Per-thread scheduling. Closes #682.Eric Holk-0/+41
Tasks are spawned on a random thread. Currently they stay there, but we should add task migration and load balancing in the future. This should drammatically improve our task performance benchmarks.
2011-07-28Test case for issue #435.Lindsey Kuper-0/+27
2011-07-28Parse, store and print type parameter kind constraints.Graydon Hoare-0/+25
2011-07-28Disable expr-scope test, since it break windowsMarijn Haverbeke-0/+4
2011-07-28:: is allowed to start an expression. Close #762.Josh Matthews-0/+5
2011-07-27Don't stop at first test failureBrian Anderson-1/+1
Since compiletest is setting up its own test tasks it needs to configure them the correct way, which means allowing them to leak.
2011-07-27Clean up output a bit when running verbose compile testsBrian Anderson-3/+7