Skip to content

Commit 98e46a4

Browse files
committed
Remove partest, keeping dotc.tests for now
1 parent 1e9bc6f commit 98e46a4

File tree

7 files changed

+49
-781
lines changed

7 files changed

+49
-781
lines changed

compiler/test/dotc/tests.scala

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,28 @@ package dotc
33
import dotty.Jars
44
import dotty.tools.dotc.CompilerTest
55
import dotty.tools.StdLibSources
6+
import org.junit.experimental.categories.Category
67
import org.junit.{Before, Test}
78
import org.junit.Assert._
89

910
import java.io.{ File => JFile }
1011
import scala.reflect.io.Directory
1112
import scala.io.Source
1213

13-
// tests that match regex '(pos|dotc|run|java|compileStdLib)\.*' would be executed as benchmarks.
14+
/** Marker class to indicate sequential unit tests */
15+
class SequentialUnitTests
16+
17+
/** WARNING
18+
* =======
19+
* These are legacy, do not add tests here, see `CompilationTests.scala`
20+
*/
21+
@Category(Array(classOf[SequentialUnitTests]))
1422
class tests extends CompilerTest {
1523

16-
def isRunByJenkins: Boolean = sys.props.isDefinedAt("dotty.jenkins.build")
24+
// tests that match regex '(pos|dotc|run|java|compileStdLib)\.*' would be
25+
// executed as benchmarks.
26+
27+
def isRunByDrone: Boolean = sys.props.isDefinedAt("DRONE")
1728

1829
val defaultOutputDir = "../out/"
1930

@@ -62,7 +73,7 @@ class tests extends CompilerTest {
6273
}
6374

6475
implicit val defaultOptions: List[String] = noCheckOptions ++ {
65-
if (isRunByJenkins) List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") // should be Ycheck:all, but #725
76+
if (isRunByDrone) List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") // should be Ycheck:all, but #725
6677
else List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef")
6778
} ++ checkOptions ++ classPath
6879

compiler/test/dotty/partest/DPConfig.scala

Lines changed: 0 additions & 40 deletions
This file was deleted.

0 commit comments

Comments
 (0)