diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-04-04 23:13:41 +0200 |
---|---|---|
committer | Felix Mulder <felix.mulder@gmail.com> | 2017-04-12 11:21:58 +0200 |
commit | 2f1a542034ddbc6cccf321e068e5161d32839f07 (patch) | |
tree | a296f1a2cf96d1b716d62ff98d184e374fc16f2a /compiler/test/dotc/tests.scala | |
parent | eff50df8308e3e1989dcbc509c5efbc5c0d087ac (diff) | |
download | dotty-2f1a542034ddbc6cccf321e068e5161d32839f07.tar.gz dotty-2f1a542034ddbc6cccf321e068e5161d32839f07.tar.bz2 dotty-2f1a542034ddbc6cccf321e068e5161d32839f07.zip |
Remove partest, keeping `dotc.tests` for now
Diffstat (limited to 'compiler/test/dotc/tests.scala')
-rw-r--r-- | compiler/test/dotc/tests.scala | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/compiler/test/dotc/tests.scala b/compiler/test/dotc/tests.scala index af2c88e1a..8e7337524 100644 --- a/compiler/test/dotc/tests.scala +++ b/compiler/test/dotc/tests.scala @@ -3,6 +3,7 @@ package dotc import dotty.Jars import dotty.tools.dotc.CompilerTest import dotty.tools.StdLibSources +import org.junit.experimental.categories.Category import org.junit.{Before, Test} import org.junit.Assert._ @@ -10,10 +11,20 @@ import java.io.{ File => JFile } import scala.reflect.io.Directory import scala.io.Source -// tests that match regex '(pos|dotc|run|java|compileStdLib)\.*' would be executed as benchmarks. +/** Marker class to indicate sequential unit tests */ +class SequentialUnitTests + +/** WARNING + * ======= + * These are legacy, do not add tests here, see `CompilationTests.scala` + */ +@Category(Array(classOf[SequentialUnitTests])) class tests extends CompilerTest { - def isRunByJenkins: Boolean = sys.props.isDefinedAt("dotty.jenkins.build") + // tests that match regex '(pos|dotc|run|java|compileStdLib)\.*' would be + // executed as benchmarks. + + def isRunByDrone: Boolean = sys.props.isDefinedAt("DRONE") val defaultOutputDir = "../out/" @@ -62,7 +73,7 @@ class tests extends CompilerTest { } implicit val defaultOptions: List[String] = noCheckOptions ++ { - if (isRunByJenkins) List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") // should be Ycheck:all, but #725 + if (isRunByDrone) List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") // should be Ycheck:all, but #725 else List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") } ++ checkOptions ++ classPath |