aboutsummaryrefslogtreecommitdiff
path: root/test/test/CompilerTest.scala
Commit message (Collapse)AuthorAgeFilesLines
* Move (most) unit tests to correct locationsFelix Mulder2016-11-221-623/+0
| | | | | | Should still perhaps move `test/dotc/tests.scala` and the others in the same directory to a better more cohesive location. Would like to delete the worksheets as well - but maybe they hold sentimental value...
* Move sjs, make sure that partest compiles everything in dirsFelix Mulder2016-11-221-9/+18
|
* Add dotty-library to classpath in dottydoc testsFelix Mulder2016-11-221-4/+7
|
* Create dotty-lib.jar for run testsFelix Mulder2016-11-221-7/+35
|
* Make relevant parts of compiler conform to new error handlingFelix Mulder2016-10-101-2/+2
|
* Add modifiers to highlightingFelix Mulder2016-10-101-5/+6
|
* test negtest path with / rather than path separatorMartijn Hoekstra2016-09-081-1/+1
|
* honor -encoding compiler flag and defaultsMartijn Hoekstra2016-09-071-3/+5
| | | | | | | | | rename test/pos/valueclasses to pos_valueclasses tests/pos/valueclasses generates a valueclasses.flags file in /tests/partest-generated/pos that conflicts with the valueClasses.flags file that tests/neg/valueClasses.scala tries to create
* force UTF-8 for slurp and writeMartijn Hoekstra2016-09-071-2/+28
|
* normalize paths for testsMartijn Hoekstra2016-09-071-2/+1
|
* partest: Enable separate compilation and javac testsGuillaume Martres2016-07-271-1/+2
| | | | | | | | | | | | partest can separately compile files based on their suffix (_1, _2, ...), it turns out that this feature was never enabled in the dotty version of partest and no one noticed (it prints warnings in ./tests/partest-generated/gen.log which no one reads), tests with *.java files should be compiled both with javac and dotty, but compiling with javac was also disabled. Enabling this revealed some latent bugs that will be fixed in the next few commits.
* Fix error printing in compiler testMartin Odersky2016-07-161-9/+7
| | | | Error messages were suppressed so far, now get printed.
* Fix #1336: Discard reporter output for tests that succeed.Nicolas Stucki2016-07-071-5/+20
|
* partest: correct line numbers in run stack tracesGuillaume Martres2016-06-301-6/+2
| | | | | | | partest adds a warning in a comment at the beginning of source files that it copies, but this means that every line number displayed in a stack trace is offset by 6. We can workaround this by making the warning a single line with no newline at the end.
* Add Eq instances of standard types to PredefMartin Odersky2016-05-231-1/+5
| | | | | | | | | To make tests pass, this required a looser specification of `assumedCanEquals`, so that an abstract type T can be compared to arbitrary values, as long as its upper bound can be compared. E.g. T == null T == "abc"
* Add REPL testsMartin Odersky2016-03-181-1/+16
|
* Polish rewrite testMartin Odersky2016-03-121-3/+3
| | | | Remove println; add docs
* Rewrite testMartin Odersky2016-03-121-1/+17
| | | | Test rewritings that were implemented so far.
* Neg tests: change val computeFilePathsAndExpErrors to defVladimirNik2016-03-031-3/+3
|
* Neg tests: remove negTest flag; neg tests are binded to neg directoryVladimirNik2016-03-031-41/+34
|
* Neg tests: remove xerror parameter from tests (compute based on // error)VladimirNik2016-03-031-42/+67
|
* Neg tests: filename checking updatedVladimirNik2016-02-181-1/+1
|
* Restructured JUnit neg testsvsalvis2016-02-181-50/+107
|
* Negtests (JUnit only) check that each error line has a // errorvsalvis2016-02-181-3/+76
|
* Driver: properly use root Context passed as argumentGuillaume Martres2016-02-041-2/+2
| | | | | | | | | | | | | | | Also CompilerTest no longer runs the compiler with the context DottyTest#ctx. Previously, we got away with this because Compiler#process ignored it and created a new Context, but this commit fixes this, and it is now very important that we use a different context for every test we compile. Since DottyTest#ctx was the only part of DottyTest we used, CompilerTest no longer extends DottyTest to make sure that we do not use it accidentally. If we want to use DottyTest as a base class for tests again, we will have to remove its implicit Context field first. Also do not try to initialize the definitions in the context used by partest, this is not necessary.
* Survive files that are not SFiles in CompilerTestMartin Odersky2016-01-161-1/+1
| | | | | | | I observed in a local partest a file with was a java.io.Path, not an SFile. They should be treated like SFiles. Not clear why this came up. The file in question (partest-generated/pos/Patterns_v1.scala) looked just like all the others that were read as SFiles.
* Partest 3/3: Proper compiler output redirectionvsalvis2015-06-241-1/+1
|
* Update-check option for partest, added "do not edit" headervsalvis2015-05-221-16/+15
|
* Added partest-only sbt target and less verbose file generationvsalvis2015-05-221-23/+33
|
* Partest command line options (same as scala) useable from sbtvsalvis2015-05-221-7/+6
|
* Run partest directory as whole by default.Dmitry Petrashko2015-05-131-13/+19
|
* More robust partest/test switching for concurrent sbt instancesvsalvis2015-05-121-15/+17
|
* Better documentation for partest dottyJar optionvsalvis2015-05-121-1/+1
|
* Run tests for partestvsalvis2015-05-121-22/+59
|
* Robuster FileLock test to prevent exception if fork in Test is ever disabledvsalvis2015-04-201-5/+11
|
* Using FileLock to distinguish between test and partest modevsalvis2015-04-201-2/+10
|
* Partest for Dotty with pos tests and neg tests with error countvsalvis2015-04-171-25/+260
|
* support running java-interop testsOndrej Lhotak2014-11-221-3/+3
|
* Add possibility to compile all files in a directory and all subdirectories.Martin Odersky2014-10-121-2/+6
| | | | | We better make this configurable. Because sometimes we want to compile only the files in the immediate directory.
* Fix test suite to go deep in subdirectories.Dmitry Petrashko2014-10-111-1/+1
|
* Reporter refactoringMartin Odersky2014-05-201-1/+1
| | | | Refactored reporters to increase clarity and to pave the way for having Diagnostics subclasses.
* Changes to test framework and testsMartin Odersky2014-05-081-9/+7
| | | | | | | | | defaultOptions is now an implicit parameter, which means it can be overridden on a call-by-call basis. Added -Ycheck:front to verify that typed trees typecheck again with same types. The option is disabled for one of the structural tests.
* Allow to provide parent Context for Driver.processDmitry Petrashko2014-04-111-1/+1
|
* Improve test infrastructureMartin Odersky2014-03-101-2/+16
| | | | | | | | | 1) New method compileFiles which allows one to compile the content of a directory one file or directory after another. 2) max constraint is printed to typr. Added new test pos_all. Other pos tests can be retired.
* Generalize test infrastructureMartin Odersky2014-02-071-7/+6
| | | | Compiler tests can now be run with configurable number of compilers and runs in a compiler.
* Make skolems live forever...Martin Odersky2014-02-061-5/+8
| | | | ... because there's no way to reload them in a new run.
* Starting to test compiling the compiler.Martin Odersky2013-12-211-0/+19
|
* Added unit testing supportMartin Odersky2013-11-181-0/+23