summaryrefslogtreecommitdiff
path: root/src/partest
Commit message (Collapse)AuthorAgeFilesLines
* fixed logic error in ant testsmichelou2011-11-271-2/+2
|
* added support for ant tests to partestmichelou2011-11-276-106/+196
|
* Make partest work with spaces in the path (from...Stefan Zeiger2011-11-226-22/+35
| | | | | | | | | | | | | | Make partest work with spaces in the path (from batch script and ant task). - The 'partest' ant task gets a new 'compilerargs' element for scalac - options (like in scalacfork and javac). Fixed argument list handling - in partest task. Further improvements to argument list handling for - all ant tasks. Fixed argument list handling in DirectTest (used by - partest shell scripts) Fixed path handling in several test cases. Closes SI-622. Review by phaller.
* Always build command lines in partest as Seq[St...Stefan Zeiger2011-11-211-11/+4
| | | | | | | | | | | Always build command lines in partest as Seq[String] instead of space-separated command. Closes SI-1510 which is actually caused by a bad command line string when the path to Java contains a space, and not by long path names per se. References SI-622 since this commit fixes the specific error described there (not closing because follow-up bugs remain).
* Reverted changeset r26024.Philipp Haller2011-11-181-11/+40
|
* Removed some obsolete javacmd, javaccmd etc.Philipp Haller2011-11-162-33/+13
|
* Working on the runners.Paul Phillips2011-11-131-17/+23
| | | | | | | | | | | | | | | | | | | | | | Removed assumption that bash is in /bin. Removed --posix option to bash. Modernized shell constructs: $() instead of ``, [[ ]] instead of [ ]. Added -debug option for all runners which will show you the exact java command line being run before running it. Added -usebootcp to complement -nobootcp, and made regular classpath the default on cygwin. Quoted more things to give us a fighting chance against spaces and parens in paths. I took the waste-half-a-day step of installing vmware fusion so I could install windows so I could install cygwin so I could install scala under cygwin so I could see if it still worked. Seems to. We still desperately need some way of testing not only everything I'm attempting to address in this pile of patches but everything which is most likely now regressing. :javap now sort of works on windows (not for repl-defined classes as yet) if JAVA_HOME is set such that I can find tools.jar. Closes SI-4959. (Risks breaking and) references SI-2092. References SI-622 since that shouldn't be hard to get working.
* A couple bits of r25957 lost under time pressure.Paul Phillips2011-11-071-1/+1
| | | | | No review.
* Another round of pleasing the gods of init order.Paul Phillips2011-11-072-5/+13
| | | | | | | Moved all the eagerly evaluated bits to the top of the file so I can see them all at once. Let a dozen vals unroll up front so initialization is more predictable. No review.
* ScalaClassLoader changes.Paul Phillips2011-11-031-2/+2
| | | | | Lots of fiddling in the interests of a better classloading future.
* Fixed paths for 'neg' tests.Hubert Plociniczak2011-11-011-0/+1
|
* Revert r25648 by michelou, it brakes partestHubert Plociniczak2011-10-314-105/+51
|
* First end-to-end implementation of a runtime re...Martin Odersky2011-10-241-3/+7
| | | | | | First end-to-end implementation of a runtime reflexive compiler that generates and loads bytecodes. Review by szeiger.
* Towards runtime code generation. No review.Martin Odersky2011-10-211-1/+4
|
* Partest now correctly parses -Yrangepos (previo...Hubert Plociniczak2011-10-041-1/+5
| | | | | | | Partest now correctly parses -Yrangepos (previously no effect). Fixed some issues with range positions. partest now passes with -Yrangepos on. review by odersky (mostly done already).
* Removed special comments on Martin's requestmichelou2011-09-291-40/+1
|
* Oops, can't even revert right.Paul Phillips2011-09-281-1/+1
| | | | | No review.
* Put back the XXX line in partest.Paul Phillips2011-09-281-1/+2
| | | | | | Classpaths and partest, soon to be jointly responsible for one or more tragedies. No review.
* Fix for classpaths.Paul Phillips2011-09-281-1/+1
| | | | | Not sys.props("CLASSPATH"), sys.env("CLASSPATH"). No review.
* More fixes to reflection and code lifting.Martin Odersky2011-09-261-0/+28
|
* Improved getFiles/getDirs in PartestTask; did s...michelou2011-09-124-51/+144
| | | | | Improved getFiles/getDirs in PartestTask; did some cleanup.
* Recent icode checking tests were leaving a bit ...Paul Phillips2011-08-252-3/+7
| | | | | | | Recent icode checking tests were leaving a bit of a mess in the filesystem. Taught them to clean up after themselves. I knew I'd pick up a few useful tricks from my kids. No review.
* Some 11th hour modifications with the dual purp...Paul Phillips2011-08-231-1/+0
| | | | | | | | | | | | | | | | | | Some 11th hour modifications with the dual purpose of a smooth console life for sbt and so the repl can be used on google app engine. Although this patch may look largish to be entering at RC4, there isn't a lot going on. It's trying to make these dangerous things: - property and environment variable accesses - thread creation - signal handler installation happpen in a sufficiently uniform way that people who don't want them and places who don't allow them are not left with an unfixable situation where things blow up inside private methods. Also, the (ahem) lower than usual elegance levels are due to it being intended for 2.9.x as well. Review by harrah.
* Created infrastructure for testing icode + sett...Paul Phillips2011-08-226-29/+143
| | | | | | | | | | | | | | | | Created infrastructure for testing icode + settings/partest yak shaving. See enclosed test files/run/inline-ex-handlers.scala. To compare optimized and unoptimized icode after a given phase, all you need in a partest source file is this: import scala.tools.partest.IcodeTest object Test extends IcodeTest { override def printIcodeAfterPhase = "inlineExceptionHandlers" } Other things can be done, see IcodeTest.scala. Review by ureche.
* Set the partest encoding to UTF-8.Paul Phillips2011-08-211-0/+1
|
* Added --presentation flag in the help messageMicro Dotta2011-08-171-0/+1
|
* "Freed the lisp test." Tweaked partest defaults...Paul Phillips2011-07-272-2/+2
| | | | | | "Freed the lisp test." Tweaked partest defaults a little in the hopes that seth tisue is correct in his analysis. No review.
* Adding some Sets/Maps to perRunCaches, and elim...Paul Phillips2011-07-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | Adding some Sets/Maps to perRunCaches, and eliminating ambiguously named imports. Did a tour of the compiler adding a few longer-lived mutable structures to the per-run cache clearing mechanism. Some of these were not a big threat, but there is (almost) literally no cost to tracking them and the fewer mutable structures which are created "lone wolf style" the easier it is to spot the one playing by his own rules. While I was at it I followed through on long held ambition to eliminate the importing of highly ambiguous names like "Map" and "HashSet" from the mutable and immutable packages. I didn't quite manage elimination but it's pretty close. Something potentially as pernicious which I didn't do much about is this import: import scala.collection._ Imagine coming across that one on lines 407 and 474 of a 1271 file. That's not cool. Some poor future programmer will be on line 1100 and use "Map[A, B]" in some function and only after the product has shipped will it be discovered that the signature is wrong and the rocket will now be crashing into the mountainside straightaway. No review.
* Restored partest behavior of keeping output dir...Paul Phillips2011-07-131-1/+4
| | | | | | Restored partest behavior of keeping output directories when run with debugging enabled. No review.
* Fixed a path issue in partest, no review.Paul Phillips2011-07-013-7/+10
|
* More batched performance improvements for io.{ ...Paul Phillips2011-06-143-8/+8
| | | | | | | | | More batched performance improvements for io.{ File, Classpath } and others in the neighborhood. Avoids calling the expensive getCanonicalPath in favor of getAbsolutePath: I note that because it has the potential to change compiler behavior at the borders. No review.
* Tweaks repl tests to enforce -Yrepl-sync and ot...Paul Phillips2011-06-102-5/+15
| | | | | | | | | Tweaks repl tests to enforce -Yrepl-sync and other setup on all clients. Also includes some more why-do-tests-hang bosons for the particle accelerator in case that doesn't wrap it up. I think it will though, because now constrained-types is the only one which failed and it's also the only one which overrides Settings. No review.
* A somewhat more realistic attempt to fix the bu...Paul Phillips2011-06-101-2/+3
| | | | | | | | A somewhat more realistic attempt to fix the build, no review. This introduces a repl command line option -Yrepl-sync to inhibit the asynchronous path which makes repl startup seem so snappy. And then it uses it in the repl tests.
* Reverting the rest of it until I can look with ...Paul Phillips2011-05-122-3/+3
| | | | | Reverting the rest of it until I can look with clear eyes, no review.
* More optimization.Paul Phillips2011-05-122-3/+3
| | | | | | (e.g. getCanonicalFile) especially if it's running at startup. No review.
* Be silent when compiling the repl extraction ob...Paul Phillips2011-05-052-40/+58
| | | | | | | Be silent when compiling the repl extraction object to suppress spurious warnings. Also corrected the busted logic for spotting repl wrappers. Closes #4542, no review.
* I wrote a warning when nullary methods return U...Paul Phillips2011-04-283-3/+3
| | | | | | | | | | | | | | | I wrote a warning when nullary methods return Unit. I wimped out of including it in this patch because we had about 200 of them, and that's what is fixed in this patch. I will add the warning to some kind of "-Xlint" feature after 2.9. This is motivated at least partly by the resolution of #4506, which indicates the distinction between "def foo()" and "def foo" will continue to jab its pointy stick into our eyes, so I believe we have a minimal duty of at least following our own advice about what they mean and not making a semirandom choice as to whether a method has parens or not. Review by community.
* Fixed a failure output regression I introduced ...Paul Phillips2011-04-061-23/+7
| | | | | | | Fixed a failure output regression I introduced working around a process bug. Unrolled the code I'd put in to work around the now-fixed process bug. No review.
* Enhancing the repl-testing code by turning it i...Paul Phillips2011-04-051-1/+3
| | | | | | | | | | Enhancing the repl-testing code by turning it into a transcript producing machine. "Here's some code." "Here's a transcript!" "Good day to you, sir!" "No, good day to YOU!" These changes are awesome. Look at the checkfile diffs for god's sake, they'll make you weep with joy. No review.
* Fixing the scalap test rig to work like other t...Paul Phillips2011-03-295-23/+18
| | | | | | Fixing the scalap test rig to work like other test types so it doesn't break the distribution build. No review.
* Spiced up the signature test infrastructure a b...Paul Phillips2011-03-231-6/+36
| | | | | | Spiced up the signature test infrastructure a bunch, wrote some more tests, restored the tests in pending. No review.
* Not yet learned my lesson about partest and emp...Paul Phillips2011-03-222-25/+31
| | | | | | | | | | Not yet learned my lesson about partest and empty directories. Rather than reapply that bandaid, went after partest. Attempts to make partest ignore empty directories. Discover directory tests aren't run when the command line tool is used, make them run like everyone else. Find more tests which due to misplacement are silently ignored, move them into tested locations. No review.
* [I'm laptop only so there's some chance this wi...Paul Phillips2011-03-213-12/+23
| | | | | | | | | | | | | | | | | | | | | | | | [I'm laptop only so there's some chance this will incur temporary breakage, but it needs committing.] Heading off gratuitous complications which haven't yet shipped, I eliminated the -jar startup option in favor of doing what we already do, figuring it out. So now all these things work. scala foo/bar.scala // if file is a script or has one main method scala foo.Bar // if it has a legal main method scala foo.jar // if it has a legal MainClass attribute Also changed "-savecompiled" to "-save" and given scala source called foo.scala, generate foo.jar rather than foo.scala.jar. Cleaned up a bunch of related code and further polished the scala startup message. And unbroke choice settings and improved that error too, which closes #3849. While trying to write a test for the choice setting, was reminded that partest just discards invalid flags files. Made it fail instead, which closes #3712. Fixed the new failures that revealed. No review.
* Always forget that checking system properties c...Paul Phillips2011-03-171-0/+32
| | | | | | | | | Always forget that checking system properties causes exceptions in applets and such. Made the system property wrapper wrap its access checks in some more wrapping. I spent a long time trying to write a test for the security manager but it's hopeless without knowing all the details of the test environment. Closes #4346, no review.
* Deprecation patrol.Paul Phillips2011-03-161-1/+1
| | | | | | | | | | | warnings due to my changing a map from mutable to immutable (which ought to be the good direction) because "def update" still lingers on immutable maps. I counted the days elapsed since it was marked for death (before 2.8.0) and added in the bugliness of what I was looking at and bid it farewell. Now removed: def update on immutable maps. No review.
* A patch for views. Most relevant change:Paul Phillips2011-03-111-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Almost all view classes now list parents like trait Appended[B >: A] extends super.Appended[B] with Transformed[B] instead of the former trait Appended[B >: A] extends Transformed[B] with super.Appended[B] because as it was, the implementation of foreach in TraversableViewLike#Transformed was repeatedly trumping overrides found in e.g. IterableLike. This change was not without its own consequences, and much of the rest of the patch is dealing with that. A more general issue is clearly revealed here: there is no straightforward way to deal with trait composition and overrides when some methods should prefer B over A and some the reverse. (It's more like A through Z in this case.) That closes #4279, with some views being five orders of magnitude slower than necessary. There is a test that confirms they'll stay performance neighbors. In the view classes (Zipped, Mapped, etc.) I attended to them with comb and brush until they were reasonably consistent. I only use "override" where necessary and throw in some "final" in the interests of trying to anchor the composition outcome. I also switched the newSliced, newZipped, etc. methods to use early init syntax since a number have abstract vals and I found at least one bug originating with uninitialized access. There was a piece of a parallel collections scalacheck test failing, which I disabled out of expedience - am emailing prokopec. There is plenty of work left to do but paulp must get back to other 2.9 issues. This is the Zurich->SF airplane patch. No review.
* More signature work arising from actually looki...Paul Phillips2011-03-071-0/+10
| | | | | | More signature work arising from actually looking at the signatures. Slightly improved the coverage of the tests. No review.
* Break 9 tests, fix 9 tests, realize you broke t...Paul Phillips2011-02-281-0/+19
| | | | | | | Break 9 tests, fix 9 tests, realize you broke the test you checked in between +9 and -9. Fix that and generalize the repl tests a little. I think we're all the way there. No review.
* Added new setting -Ygen-javap, which takes a di...Paul Phillips2011-02-141-0/+1
| | | | | | | | Added new setting -Ygen-javap, which takes a directory as an argument and generates javap output for every generated classfile. There is still a lot of noise in a diff: still todo is postprocessing the output to remove diff-noise-generating numbers and such. No review.
* I chased a lot of ghosts before finding the rea...Paul Phillips2011-02-111-28/+29
| | | | | | | | | | | | | I chased a lot of ghosts before finding the real culprit for why partest failures have been unfailing. Process(Seq("bash", "-c", "exit 42")) ! // 42 Process(Seq("bash", "-c", "exit 42")) #> logFile ! // 0 That behavior is not yet fixed, but I altered partest not to use #> and fixed the test which should have been failing but wasn't. Closes #4227, no review.