@@ -3,17 +3,28 @@ package dotc
3
3
import dotty .Jars
4
4
import dotty .tools .dotc .CompilerTest
5
5
import dotty .tools .StdLibSources
6
+ import org .junit .experimental .categories .Category
6
7
import org .junit .{Before , Test }
7
8
import org .junit .Assert ._
8
9
9
10
import java .io .{ File => JFile }
10
11
import scala .reflect .io .Directory
11
12
import scala .io .Source
12
13
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 ]))
14
22
class tests extends CompilerTest {
15
23
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" )
17
28
18
29
val defaultOutputDir = " ../out/"
19
30
@@ -62,7 +73,7 @@ class tests extends CompilerTest {
62
73
}
63
74
64
75
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
66
77
else List (" -Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef" )
67
78
} ++ checkOptions ++ classPath
68
79
0 commit comments