For testing compiler internals directly.
For testing compiler internals directly. Each source code string in "sources" will be compiled, and the check function will be called with the source code and the resulting CompilationUnit. The check implementation should test for what it wants to test and fail (via assert or other exception) if it is not happy.
A class for testing code which is embedded as a string.
A class for testing code which is embedded as a string. It allows for more complete control over settings, compiler configuration, sequence of events, etc. than does partest.
A trait for testing icode.
A trait for testing icode. All you need is this in a partest source file:
object Test extends IcodeTest
And then the generated output will be the icode for everything in that file. See source for possible customizations.
An Ant task to execute the Scala test suite (NSC).
An Ant task to execute the Scala test suite (NSC).
This task can take the following parameters as attributes:
srcdir
,classpath
,classpathref
,erroronfailed
,javacmd
,javaccmd
,scalacopts
,debug
,junitreportdir
.It also takes the following parameters as nested elements:
compilationpath
. -- TODO: this parameter is now redundant: it's the same as the classpath used to run the task
In order to allow for spaces in flags/options, this parses .flags, .javaopts, javacopts etc files as follows: If it is exactly one line, it is split (naively) on spaces.
In order to allow for spaces in flags/options, this parses .flags, .javaopts, javacopts etc files as follows: If it is exactly one line, it is split (naively) on spaces. If it contains more than one line, each line is its own token, spaces and all.