@@ -29,6 +29,7 @@ class tests extends CompilerTest {
29
29
val staleSymbolError : List [String ] = List ()
30
30
31
31
val allowDeepSubtypes = defaultOptions diff List (" -Yno-deep-subtypes" )
32
+ <<<<<<< HEAD
32
33
val allowDoubleBindings = defaultOptions diff List (" -Yno-double-bindings" )
33
34
34
35
val testsDir = " ./tests/"
@@ -83,9 +84,9 @@ class tests extends CompilerTest {
83
84
@ Test def pos_nullarify = compileFile(posDir, " nullarify" , args = " -Ycheck:nullarify" :: Nil )
84
85
@ Test def pos_subtyping = compileFile(posDir, " subtyping" , twice)
85
86
@ Test def pos_t2613 = compileFile(posSpecialDir, " t2613" )(allowDeepSubtypes)
86
- @ Test def pos_packageObj = compileFile(posDir, " i0239" , twice )
87
- @ Test def pos_anonClassSubtyping = compileFile(posDir, " anonClassSubtyping" , twice )
88
- @ Test def pos_extmethods = compileFile(posDir, " extmethods " , twice )
87
+ @ Test def pos_packageObj = compileFile(posDir, " i0239" )
88
+ @ Test def pos_anonClassSubtyping = compileFile(posDir, " anonClassSubtyping" )
89
+ @ Test def pos_specialization = compileFile(posDir, " specialization " )
89
90
90
91
@ Test def pos_all = compileFiles(posDir) // twice omitted to make tests run faster
91
92
@@ -138,9 +139,94 @@ class tests extends CompilerTest {
138
139
@ Test def neg_instantiateAbstract = compileFile(negDir, " instantiateAbstract" , xerrors = 8 )
139
140
@ Test def neg_selfInheritance = compileFile(negDir, " selfInheritance" , xerrors = 5 )
140
141
141
-
142
- @ Test def run_all = runFiles(runDir)
143
-
144
-
145
- @ Test def dotty = compileDir(dottyDir, " tools" , " -deep" :: allowDeepSubtypes ++ twice) // note the -deep argument
142
+ @ Test def dotc = compileDir(dotcDir + " tools/dotc" , failedOther)(allowDeepSubtypes)
143
+ // buggy ->
144
+ @ Test def dotc_ast = compileDir(dotcDir + " tools/dotc/ast" , failedOther) // similar to dotc_config
145
+ @ Test def dotc_config = compileDir(dotcDir + " tools/dotc/config_debug" , failedOther) // seems to mess up stack frames
146
+ // buggy ->
147
+ @ Test def dotc_core = compileDir(dotcDir + " tools/dotc/core" , failedUnderscore)(allowDeepSubtypes)
148
+ // fails due to This refference to a non-eclosing class. Need to check
149
+
150
+ // buggy ->
151
+ @ Test def dotc_core_pickling = compileDir(dotcDir + " tools/dotc/core/pickling" , failedOther)(allowDeepSubtypes) // Cannot emit primitive conversion from V to Z
152
+
153
+ // buggy ->
154
+ @ Test def dotc_transform = compileDir(dotcDir + " tools/dotc/transform" , failedbyName)
155
+
156
+ // buggy ->
157
+ @ Test def dotc_parsing = compileDir(dotcDir + " tools/dotc/parsing" , failedOther)
158
+ // Expected primitive types I - Ljava/lang/Object
159
+ // Tried to return an object where expected type was Integer
160
+ // buggy ->
161
+ @ Test def dotc_printing = compileDir(dotcDir + " tools/dotc/printing" , failedOther)
162
+ @ Test def dotc_reporting = compileDir(dotcDir + " tools/dotc/reporting" , twice)
163
+ // buggy ->
164
+ @ Test def dotc_typer = compileDir(dotcDir + " tools/dotc/typer" , failedOther) // similar to dotc_config
165
+ // @Test def dotc_util = compileDir(dotcDir + "tools/dotc/util") //fails inside ExtensionMethods with ClassCastException
166
+ // buggy ->
167
+ @ Test def tools_io = compileDir(dotcDir + " tools/io" , failedOther) // similar to dotc_config
168
+
169
+ @ Test def helloWorld = compileFile(posDir, " HelloWorld" , doEmitBytecode)
170
+ @ Test def labels = compileFile(posDir, " Labels" , doEmitBytecode)
171
+ // @Test def tools = compileDir(dotcDir + "tools", "-deep" :: Nil)(allowDeepSubtypes)
172
+
173
+ // buggy ->
174
+ @ Test def testNonCyclic = compileArgs(Array (
175
+ dotcDir + " tools/dotc/CompilationUnit.scala" ,
176
+ dotcDir + " tools/dotc/core/Types.scala" ,
177
+ dotcDir + " tools/dotc/ast/Trees.scala" ,
178
+ failedUnderscore.head,
179
+ " -Xprompt" ,
180
+ " #runs" , " 2" ))
181
+
182
+ @ Test def testIssue_34 = compileArgs(Array (
183
+ dotcDir + " tools/dotc/config/Properties.scala" ,
184
+ dotcDir + " tools/dotc/config/PathResolver.scala" ,
185
+ // "-Ylog:frontend",
186
+ " -Xprompt" ,
187
+ " #runs" , " 2" ))
188
+
189
+ @ Test def dotc_ast = compileDir(dotcDir, " ast" )
190
+ @ Test def dotc_config = compileDir(dotcDir, " config" )
191
+ @ Test def dotc_core = compileDir(dotcDir, " core" )(" -Yno-double-bindings" :: allowDeepSubtypes)// twice omitted to make tests run faster
192
+
193
+ @ Test def dotc_core_pickling = compileDir(coreDir, " pickling" )(allowDeepSubtypes)// twice omitted to make tests run faster
194
+
195
+ @ Test def dotc_transform = compileDir(dotcDir, " transform" )// twice omitted to make tests run faster
196
+
197
+ // @Test def dotc_compilercommand = compileFile(dotcDir + "tools/dotc/config/", "CompilerCommand")
198
+
199
+ @ Test def dotc_parsing = compileDir(dotcDir, " parsing" ) // twice omitted to make tests run faster
200
+
201
+ @ Test def dotc_printing = compileDir(dotcDir, " printing" ) // twice omitted to make tests run faster
202
+
203
+ @ Test def dotc_reporting = compileDir(dotcDir, " reporting" ) // twice omitted to make tests run faster
204
+
205
+ @ Test def dotc_typer = compileDir(dotcDir, " typer" )// twice omitted to make tests run faster
206
+ // error: error while loading Checking$$anon$2$,
207
+ // class file 'target/scala-2.11/dotty_2.11-0.1-SNAPSHOT.jar(dotty/tools/dotc/typer/Checking$$anon$2.class)'
208
+ // has location not matching its contents: contains class $anon
209
+
210
+ @ Test def dotc_util = compileDir(dotcDir, " util" ) // twice omitted to make tests run faster
211
+
212
+ @ Test def tools_io = compileDir(toolsDir, " io" ) // inner class has symbol <none>
213
+
214
+ @ Test def helloWorld = compileFile(posDir, " HelloWorld" )
215
+ @ Test def labels = compileFile(posDir, " Labels" , twice)
216
+ // @Test def tools = compileDir(dottyDir, "tools", "-deep" :: Nil)(allowDeepSubtypes)
217
+
218
+ @ Test def testNonCyclic = compileList(" testNonCyclic" , List (
219
+ dotcDir + " CompilationUnit.scala" ,
220
+ coreDir + " Types.scala" ,
221
+ dotcDir + " ast/Trees.scala"
222
+ ), List (" -Xprompt" ) ++ staleSymbolError ++ twice)
223
+
224
+ @ Test def testIssue_34 = compileList(" testIssue_34" , List (
225
+ dotcDir + " config/Properties.scala" ,
226
+ dotcDir + " config/PathResolver.scala"
227
+ ), List (/* "-Ylog:frontend", */ " -Xprompt" ) ++ staleSymbolError ++ twice)
228
+
229
+ val javaDir = " ./tests/pos/java-interop/"
230
+ @ Test def java_all = compileFiles(javaDir, twice)
231
+ // @Test def dotc_compilercommand = compileFile(dotcDir + "config/", "CompilerCommand")
146
232
}
0 commit comments