- About Scala
- Documentation
- Code Examples
- Software
- Scala Developers
anyone know where the compiler tests are?
Sun, 2009-05-17, 02:13
I'm having a difficult time navigating the test directory. I figured I'd be able to find some tests directly related to the compiler, inputs and outputs type stuff. Grepping doesn't seem to be helping. Do these sort of tests exist? And if so, can anyone point me to them?
-Josh
-Josh
Hello Josh.
> I'm having a difficult time navigating the test directory. I figured
> I'd be
> able to find some tests directly related to the compiler, inputs and
> outputs
> type stuff. Grepping doesn't seem to be helping. Do these sort of
> tests
> exist? And if so, can anyone point me to them?
All tests we use for the compiler are in "test/files". The various
subdirectories in there relate to how the test should be run:
- "pos" stands for "must compile without error",
- "neg" stands for "must fail at compile-time with a given error",
- "run" stands for "must compile successfully and running it must
exactly output the content of the .check file",
- etc.
Is that what you mean by "inputs and outputs type stuff"?
The "test/partest" script runs the tests automatically (and in
parallel for added speed). Run "partest --help" to get an idea of what
it does. Running partest is the same as running the "test" target in
Scala's Ant build script.
Cheers,
Gilles.