@@ -9,20 +9,19 @@ import org.junit.experimental.categories._
9
9
class tests extends CompilerTest {
10
10
11
11
val noCheckOptions = List (
12
- // "-verbose",
13
- // "-Ylog:frontend",
14
- // "-Xprompt",
15
- // "-explaintypes",
16
- // "-Yshow-suppressed-errors",
12
+ // "-verbose",
13
+ // "-Ylog:frontend",
14
+ // "-Xprompt",
15
+ // "-explaintypes",
16
+ // "-Yshow-suppressed-errors",
17
17
)
18
18
19
19
val defaultOutputDir = " ./out/"
20
20
21
21
implicit val defaultOptions = noCheckOptions ++ List (
22
-
23
- " -Yno-deep-subtypes" , " -Yno-double-bindings" ,
24
- " -Ycheck:tailrec,resolveSuper,mixin,restoreScopes" ,
25
- " -d" , defaultOutputDir
22
+ " -Yno-deep-subtypes" , " -Yno-double-bindings" ,
23
+ " -Ycheck:tailrec,resolveSuper,mixin,restoreScopes" ,
24
+ " -d" , defaultOutputDir
26
25
)
27
26
val testPickling = List (" -Xprint-types" , " -Ytest-pickler" , " -Ystop-after:pickler" )
28
27
@@ -51,11 +50,10 @@ class tests extends CompilerTest {
51
50
val dotcDir = toolsDir + " dotc/"
52
51
val coreDir = dotcDir + " core/"
53
52
54
- /*
55
53
56
54
@ Test def pickle_pickleOK = compileDir(testsDir, " pickling" , testPickling)
57
- // This directory doesn't exist anymore
58
- // @Test def pickle_pickling = compileDir(coreDir, "pickling", testPickling)
55
+ // This directory doesn't exist anymore
56
+ // @Test def pickle_pickling = compileDir(coreDir, "pickling", testPickling)
59
57
@ Test def pickle_ast = compileDir(dotcDir, " ast" , testPickling)
60
58
61
59
// @Test def pickle_core = compileDir(dotcDir, "core", testPickling, xerrors = 2) // two spurious comparison errors in Types and TypeOps
@@ -95,7 +93,6 @@ class tests extends CompilerTest {
95
93
@ Test def pos_packageObj = compileFile(posDir, " i0239" , twice)
96
94
@ Test def pos_anonClassSubtyping = compileFile(posDir, " anonClassSubtyping" , twice)
97
95
@ Test def pos_extmethods = compileFile(posDir, " extmethods" , twice)
98
- //@Test def pos_specialization = compileFile(posDir, "specialization")
99
96
100
97
@ Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster
101
98
@@ -148,8 +145,8 @@ class tests extends CompilerTest {
148
145
@ Test def neg_instantiateAbstract = compileFile(negDir, " instantiateAbstract" , xerrors = 8 )
149
146
@ Test def neg_selfInheritance = compileFile(negDir, " selfInheritance" , xerrors = 5 )
150
147
151
- //@Test def run_all = runFiles(runDir)
152
- // @Test def run_spec = runFile (runDir, "specialization" )
148
+
149
+ @ Test def run_all = runFiles (runDir)
153
150
154
151
155
152
@ Test def dotty = compileDir(dottyDir, " tools" , " -deep" :: allowDeepSubtypes ++ twice) // note the -deep argument
@@ -159,8 +156,8 @@ class tests extends CompilerTest {
159
156
@ Test def dotc_config = compileDir(dotcDir, " config" )
160
157
@ Test def dotc_core = compileDir(dotcDir, " core" )(" -Yno-double-bindings" :: allowDeepSubtypes)// twice omitted to make tests run faster
161
158
162
- // This directory doesn't exist anymore
163
- // @Test def dotc_core_pickling = compileDir(coreDir, "pickling")(allowDeepSubtypes)// twice omitted to make tests run faster
159
+ // This directory doesn't exist anymore
160
+ // @Test def dotc_core_pickling = compileDir(coreDir, "pickling")(allowDeepSubtypes)// twice omitted to make tests run faster
164
161
165
162
@ Test def dotc_transform = compileDir(dotcDir, " transform" )// twice omitted to make tests run faster
166
163
@@ -171,9 +168,9 @@ class tests extends CompilerTest {
171
168
@ Test def dotc_reporting = compileDir(dotcDir, " reporting" ) // twice omitted to make tests run faster
172
169
173
170
@ Test def dotc_typer = compileDir(dotcDir, " typer" )// twice omitted to make tests run faster
174
- // error: error while loading Checking$$anon$2$,
175
- // class file 'target/scala-2.11/dotty_2.11-0.1-SNAPSHOT.jar(dotty/tools/dotc/typer/Checking$$anon$2.class)'
176
- // has location not matching its contents: contains class $anon
171
+ // error: error while loading Checking$$anon$2$,
172
+ // class file 'target/scala-2.11/dotty_2.11-0.1-SNAPSHOT.jar(dotty/tools/dotc/typer/Checking$$anon$2.class)'
173
+ // has location not matching its contents: contains class $anon
177
174
178
175
@ Test def dotc_util = compileDir(dotcDir, " util" ) // twice omitted to make tests run faster
179
176
@@ -184,19 +181,19 @@ class tests extends CompilerTest {
184
181
// @Test def tools = compileDir(dottyDir, "tools", "-deep" :: Nil)(allowDeepSubtypes)
185
182
186
183
@ Test def testNonCyclic = compileList(" testNonCyclic" , List (
187
- dotcDir + "CompilationUnit.scala",
188
- coreDir + "Types.scala",
189
- dotcDir + "ast/Trees.scala"
190
- ), List("-Xprompt") ++ staleSymbolError ++ twice)
184
+ dotcDir + " CompilationUnit.scala" ,
185
+ coreDir + " Types.scala" ,
186
+ dotcDir + " ast/Trees.scala"
187
+ ), List (" -Xprompt" ) ++ staleSymbolError ++ twice)
191
188
192
189
@ Test def testIssue_34 = compileList(" testIssue_34" , List (
193
- dotcDir + "config/Properties.scala",
194
- dotcDir + "config/PathResolver.scala"
195
- ), List(/* "-Ylog:frontend", */ "-Xprompt") ++ staleSymbolError ++ twice)
190
+ dotcDir + " config/Properties.scala" ,
191
+ dotcDir + " config/PathResolver.scala"
192
+ ), List (/* "-Ylog:frontend", */ " -Xprompt" ) ++ staleSymbolError ++ twice)
196
193
197
194
val javaDir = " ./tests/pos/java-interop/"
198
195
@ Test def java_all = compileFiles(javaDir, twice)
199
- */
196
+
200
197
@ Test def specialization = compileFile(specialDir, " specialization" , List (" -Xprint:specialize" ))
201
198
@ Test def mutual_spec = compileFile(specialDir, " mutual_specialization" , List (" -Xprint:specialize" ))
202
199
@ Test def return_spec = compileFile(specialDir, " return_specialization" , List (" -Xprint:specialize" ))
@@ -209,12 +206,7 @@ class tests extends CompilerTest {
209
206
@ Test def pos_this_specialization = compileFile(specialDir, " this_specialization" , List (" -Xprint:specialize" ))
210
207
@ Test def pos_spec_all = compileFiles(specialDir)
211
208
212
-
213
- // @Test def mini_method = compileFiles(miniMethodDir)//, List("-Xprint:all"))
214
- // @Test def mini_more = compileFiles(miniMoreDir)//, List("-Xprint:all"))
215
- // @Test def pos_all = compileFiles(posDir)//, List("-Xprint:all"))
216
-
217
- // @Test def pos_si7638 = compileFile(posDir, "SI-7638", List("-Xprint:all"))
218
- // @Test def test = compileFile(posDir, "t247", List("-Xprint:all"))
209
+ @ Test def run_spec = runFile(runDir, " specialization" )
210
+
219
211
// @Test def dotc_compilercommand = compileFile(dotcDir + "config/", "CompilerCommand")
220
- }
212
+ }
0 commit comments