This page is no longer maintained — Please continue to the home page at www.scala-lang.org

anyone know where the compiler tests are?

1 reply
joshcough
Joined: 2009-05-08,
User offline. Last seen 1 year 21 weeks ago.
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
dubochet
Joined: 2008-06-30,
User offline. Last seen 1 year 36 weeks ago.
Re: anyone know where the compiler tests are?

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.

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland