summaryrefslogtreecommitdiff
path: root/test/partest
Commit message (Collapse)AuthorAgeFilesLines
* Switch remaining uses of ant over to sbtStefan Zeiger2016-08-231-6/+6
| | | | | | | | | | | | | | - Modify `tools/scaladoc-diff` to use sbt instead of ant. - Move `stability-test.sh` from `tools` to `scripts`. With the new build process without separate `locker` and `strap` stages, it doesn’t make sense to call this script without first setting up the proper test environment in a CI build. - Replace the use of `build.number` in `bootstrap` with a new `SHA-NIGHTLY` mode for `baseVersionSuffix`. - Make `partest` call sbt instead of ant for initializing the classpath and use the new classpath location (`quick` instead of `pack`).
* Merge commit '8eb1d4c' into merge-2.11-to-2.12-nov-24Lukas Rytz2015-11-241-0/+8
|\
| * add comment about Cygwin trouble to test/partestSeth Tisue2015-10-081-0/+8
| |
* | Merge commit '03aaf05' into merge-2.11-to-2.12-sep-22Lukas Rytz2015-09-221-1/+0
|\|
| * fix partest to work on CygwinSeth Tisue2015-09-171-1/+0
| | | | | | | | | | note that the code removed here is inside an `if $cygwin; then` block, so it can't affect other environments.
* | remove -XX:MaxPermSize=128M; it doesn't exist in Java 8Seth Tisue2015-07-131-2/+1
|/
* Move partest to https://github.com/scala/scala-partestAdriaan Moors2013-08-201-23/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As partest is now resolved from maven, `test/partest` uses `ant test.suite.init` to determine the classpath (serialized to build/pack/partest.properties) that's necessary to run `scala.tools.partest.nest.ConsoleRunner`. Thus, partest gets exactly the same classpath, whether run from the command line through `test/partest` or via `ant test`. The version of partest we're using is specified by properties defined in versions.properties (formerly `starr.number`). Currently, we're using: ``` scala.binary.version=2.11.0-M4 partest.version.number=1.0-RC3 ``` NOTES: - The version of Scala being tested must be backwards binary compatible with the version of Scala that was used to compile partest. - Once 2.11 goes final, `scala.binary.version=2.11`, and `starr.version=2.11.0`. - Need scalacheck on classpath for test/partest scalacheck tests. - Removed atrophied ant tests (haven't been run/changed for at least two years I checked 81d659141a as a "random" sample). - Removed scalacheck. It's resolved as a partest dependency. - For now, use a locally built scalap - Kept the trace macro in the main repo (partest-extras) - New targets for faster pr validation: test-core-opt, test-stab-opt - Reused partest eclipse/intellij project to partest-extras (note: the partest dependency is hard-coded)
* Merge pull request #2792 from ScrapCodes/partest-script-fixedAdriaan Moors2013-08-151-1/+4
|\ | | | | Bug fix ! , if $color_opts is unset partest script does not work.
| * Added a warning from scala runner script.Prashant Sharma2013-08-131-0/+3
| |
| * Bug fix ! , if $color_opts is unset partest script does not work.Prashant Sharma2013-08-011-1/+1
| |
* | SI-7729 Does Par-Test work? Absolutely!Som Snytt2013-08-081-18/+12
|/ | | | | | | | | | | | | | | | | | | | Testicolor just passed file arguments through; this commit does either toAbsolute or getAbsoluteFile (depending on the File API impedance mismatch) at ConsoleRunner (command line) and Runner (ant supplies absolute paths, but in case sbt runner doesn't, and who knows). It also sprinkles toAbsolute internally, where it may be redundant. Do I mean redundant or redolent? I noticed that my branch from last year relativized to test root always; so this is one of those choices one commits to. The point of breakage in this case was, if a path is not absolute, use test root / path, which only works (of course) if the relative path is relative to test root, which is no longer the case. Because all paths are now calculated with respect to the test file path, the "out" dir would change its relative path depending on the invocation.
* Spin off parser combinators to scala-parser-combinators.jar.Adriaan Moors2013-07-051-1/+1
|
* Spin off src/library/scala/xml to src/xml/scala/xml.Adriaan Moors2013-07-051-1/+1
| | | | | | | | | | | | | | | | | | Summary: - Remove the last vestiges of xml from Predef and Contexts. - Change build to compile scala.xml to scala-xml.jar. - Deploy scala-xml module to maven. - Update partest accordingly. Note: An older compiler cannot use the new standard library to compile projects that use XML. Thus, skipping locker will break the build until we use 2.11.0-M4 for STARR. In the future build process, where we drop locker, we would have to release a milestone that supports the old and the new approach to xml. As soon as we'd be using that new milestone for starr, we could drop support for the old approach.
* SI-7349 Partest supports test-interfaceSom Snytt2013-04-301-0/+1
| | | | | | | | Partest uses test-interface API to invoke ScalaCheck. This obviates ad hoc output checking for result status. The context class loader is set to a loader that the scaladoc scalacheck tests can use.
* SI-7314 Partest locates tools.jar and javacSom Snytt2013-04-181-3/+22
| | | | | | | | | | | | | | | | | | | | This commit lets partest locate tools.jar the way REPL does, with the addition that java.home.parent is also tried. The partest script will use JAVAC_CMD if set, or else JAVA_HOME, and will try the sibling of JAVACMD if set (on the theory that if you specify java, you are avoiding the path lookup and javac may also be in that special place), or else query the path for javac. The use cases are: no env vars, look around java.home; JDK or JAVA_HOME is set; JAVACMD is set; and finally tools.jar can live in jre/lib/ext and the fallback deep search will find it. These cases have been tried on cygwin with Java installed under s"Program${space}Files", which is usually the most brittle environment. That means tested with bash. The windows partest.bat has not been upgraded or side-graded.
* SI-6289 Partest in technicolor and showing javac errorsSom Snytt2013-04-041-2/+14
| | | | | | | | | | | | | | | | | | | | | | Paulptest includes color and simplified test scarfing. Scalap tests are moved to the conventional name and location. Testicolor missed out on Josh Suereth's tweak to sort the files in a compilation round. Restore sortiness to test sources. Testicolor is due to one of Paul's branches on a timeline that apparently did not include the destruction of planet Earth and its colonies by the Xindi. Thanks also to Szabolcs Berecz for his merge effort. Merging is thankless work, but not as thankless as merging in a timeline that actually does terminate in the destruction of your home world and Enterprise. Archer had a supremely difficult choice: rescue humanity or live out his retirement with T'Pol waiting on him hand and foot? I'm sure I don't know how I'd choose.
* Merge remote tracking branch 'origin/2.10.x' into ↵Jason Zaugg2013-04-021-2/+2
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | topic/merge-2.10.x-to-v2.11.0-M2-74-g00e6c8b Conflicts: bincompat-backward.whitelist.conf bincompat-forward.whitelist.conf build.xml src/compiler/scala/reflect/reify/utils/Extractors.scala src/compiler/scala/tools/nsc/backend/jvm/GenJVM.scala src/compiler/scala/tools/nsc/symtab/classfile/ICodeReader.scala src/compiler/scala/tools/nsc/transform/patmat/MatchOptimization.scala src/compiler/scala/tools/nsc/typechecker/Typers.scala src/partest/scala/tools/partest/nest/ReflectiveRunner.scala src/reflect/scala/reflect/internal/Types.scala src/reflect/scala/reflect/runtime/JavaUniverse.scala test/files/run/inline-ex-handlers.check test/files/run/t6223.check test/files/run/t6223.scala test/scaladoc/scalacheck/IndexTest.scala
| * Strip version suffix from diffutils.Adriaan Moors2013-03-291-1/+1
| |
| * Use java-diff-utils for diffing in partest.Adriaan Moors2013-03-291-2/+2
| | | | | | | | | | | | | | | | We now use the unified diff format, hence the updated check files. It's not clear to me how partest's classpath is managed, but the approach in this commit works for the ant task and script invocation. The diffutils jar is injected in the parent classloader.
* | Merge remote-tracking branch 'origin/2.10.x' into pr/merge-210Paul Phillips2013-01-291-1/+3
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'd392d56d6bf8b0ae9072b354e4ec68becd0df679': SI-4602 Disable unreliable test of fsc path absolutization Update a checkfile from a recent fix. SI-7018 Fix memory leak in Attachments. SI-4733 - fsc no longer creates a single temp directory for all users. Bumped partest MaxPermSize to 128m. SI-6891 Fix value class + tailrec crasher. Ill-scoped reference checking in TreeCheckers Make value classes TreeCheckers friendly SI-4602 Make fsc absolutize source file names SI-6863 Fix verify error in captured var inited from expr with try/catch SI-6932 Remove Batchable trait plus minor clean-ups Fix SI-6932 by enabling linearization of callback execution for the internal execution context of Future SI-6443 Expand test coverage with varargs, by-name. SI-6443 Widen dependent param types in uncurry Conflicts: src/reflect/scala/reflect/internal/Trees.scala test/partest
| * Bumped partest MaxPermSize to 128m.Paul Phillips2013-01-261-3/+4
| |
* | Merge commit 'e7ecaa00bb' into pr/merge-2.10Paul Phillips2013-01-251-2/+2
|\| | | | | | | | | Conflicts: test/partest
| * Use the same default scalac options in all three partest frontendsSzabolcs Berecz2013-01-221-1/+0
| | | | | | | | | | | | | | | | | | Make ConsoleRunner, AntRunner and SBTRunner take scalac options from "partest.scalac_opts" property. Also remove leftover "-deprecation" option from test/partest. The change to SBTRunner was not tested as sbt test is currently broken.
* | align partest script with antAdriaan Moors2013-01-161-1/+4
| | | | | | | | don't silently pass -deprecation to scalac by default
* | Updated copyright to 2013Carlo Dapor2013-01-021-1/+1
| |
* | On --grep, partest must dir.list to descend into subdirs (fixes SI-6296)Som Snytt2012-08-311-1/+7
|/ | | | | | | | In addition, always use UTF-8 when reading test files (and not default), since some tests exercise UTF-8. Also, quote "$JAVACMD" and convert it (and $JAVA_HOME) for cygwin, where $JAVACMD is likely to include a space.
* a quickfix for test/partestEugene Burmako2012-06-081-1/+1
|
* Tweaks repl tests to enforce -Yrepl-sync and ot...Paul Phillips2011-06-101-2/+12
| | | | | | | | | 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.
* Fixing the scalap test rig to work like other t...Paul Phillips2011-03-291-2/+1
| | | | | | Fixing the scalap test rig to work like other test types so it doesn't break the distribution build. No review.
* Updated copyright notices to 2011Antonio Cunei2011-01-201-1/+1
|
* Rolled partest back to r21328.Paul Phillips2010-05-061-18/+7
| | | | | | | | changes necessary to plug it back in while preserving everything which has happened since then in tests and such, but we should be the lookout for overreversion. Review by phaller (but as a formality, I don't think it requires direct review.)
* Introduces scala.tools.cmd providing command li...Paul Phillips2010-04-111-3/+3
| | | | | | | | | | | | | | | | | | Introduces scala.tools.cmd providing command line tool infrastructure. For a quick look at what can be done, see scala.tools.cmd.Demo For a more involved, potentially eye-straining look, see scala.tools.partest.PartestSpec To experience it through the eyes of Joe Partest User, run test/partest Review by community.
* If I work on this patch any longer without chec...Paul Phillips2010-04-051-7/+18
| | | | | | | | | | | | | | | | If I work on this patch any longer without checking in I will go stark raving mad. It is broken up into a couple pieces. This one is the changes to test/. It includes fixing a bunch of tests, removing deprecated constructs, moving jars used by tests to the most specific plausible location rather than having all jars on the classpath of all tests, and some filesystem layout change (continuations get their whole own srcpath.) This would be the world's most tedious review, so let's say no review. [Note: after this commit, I doubt things will build very smoothly until the rest of the partest changes follow. Which should only be seconds, but just in case.]
* Enabled scalacheck tests.Paul Phillips2010-03-011-1/+1
| | | | | | | | what must be legacy scalatest.* properties to partest.*, boldly assuming that the fact that partest is pretty much unusable outside of scalac means there are no users outside of scalac who might be disrupted by eliminating old property names. Review by community.
* ...and managed to miss the key file in getting ...Paul Phillips2010-02-171-1/+6
| | | | | ...and managed to miss the key file in getting past partest. No review.
* Updated copyright notices to 2010Antonio Cunei2009-12-071-1/+1
|
* Some duplication elimination in partest.Paul Phillips2009-09-221-2/+2
|
* Scalac was failing if the path to the distributionAntonio Cunei2009-07-161-1/+1
| | | | | contained whitespaces. This simple change fixes that.
* Fix for #2092Antonio Cunei2009-07-011-2/+6
|
* Updated copyright notices to 2009Antonio Cunei2009-01-091-1/+1
|
* Changed the way in which the path to javac is p...Philipp Haller2008-10-211-1/+1
| | | | | Changed the way in which the path to javac is passed to partest.
* Boot class path and ext dirs are now set proper...Philipp Haller2008-09-181-1/+1
| | | | | | | Boot class path and ext dirs are now set properly when creating compilers to be tested. partest runner script now reads PARTEST_DEBUG env. var (setting it to true enables debug output).
* Fixed spelling of partest scalac and java options.Philipp Haller2008-09-171-1/+1
|
* - updated partest to work with SuperSabbus (pac...Lukas Rytz2008-05-071-3/+3
| | | | | | | | - updated partest to work with SuperSabbus (pack direcotry) and installed distributions.\n-removed 'latestFjbgFile' where apropriate, because fjbg is now included in scala-compiler.jar.\n-updated runner scripts to work with an installed distribution.
* partest does not use STARR library any morePhilipp Haller2008-02-271-13/+3
|
* removed unused vars/propsmichelou2008-02-271-18/+5
|
* corrected EXT_CLASSPATHmichelou2008-02-261-2/+16
|
* updated partest, added jline.jar to dists/latestmichelou2008-02-261-848/+59
|
* changed some newlinesmichelou2007-11-161-4/+3
|
* improved code (actor exit problem still pending)michelou2007-11-151-57/+27
|