@@ -216,8 +216,7 @@ class CompilationTests extends ParallelTesting {
216
216
defaultOutputDir + dotty1Group + " /dotty/" + sep +
217
217
// and the other compiler dependenies:
218
218
Properties .compilerInterface + sep + Properties .scalaLibrary + sep + Properties .scalaAsm + sep +
219
- Properties .dottyInterfaces + sep + Properties .jlineTerminal + sep + Properties .jlineReader + sep +
220
- Properties .scalaJSIR,
219
+ Properties .dottyInterfaces + sep + Properties .jlineTerminal + sep + Properties .jlineReader,
221
220
Array (" -Ycheck-reentrant" , " -Yemit-tasty-in-class" )
222
221
)
223
222
@@ -233,6 +232,7 @@ class CompilationTests extends ParallelTesting {
233
232
234
233
val backendDir = Paths .get(" scala-backend/src/compiler/scala/tools/nsc/backend" )
235
234
val backendJvmDir = Paths .get(" scala-backend/src/compiler/scala/tools/nsc/backend/jvm" )
235
+ val scalaJSIRDir = Paths .get(" compiler/target/scala-2.12/src_managed/main/scalajs-ir-src/org/scalajs/ir" )
236
236
237
237
// NOTE: Keep these exclusions synchronized with the ones in the sbt build (Build.scala)
238
238
val backendExcluded =
@@ -244,9 +244,11 @@ class CompilationTests extends ParallelTesting {
244
244
sources(Files .list(backendDir), excludedFiles = backendExcluded)
245
245
val backendJvmSources =
246
246
sources(Files .list(backendJvmDir), excludedFiles = backendJvmExcluded)
247
+ val scalaJSIRSources =
248
+ sources(Files .list(scalaJSIRDir))
247
249
248
- val dotty1 = compileList(" dotty" , compilerSources ++ backendSources ++ backendJvmSources, opt)(dotty1Group)
249
- val dotty2 = compileList(" dotty" , compilerSources ++ backendSources ++ backendJvmSources, opt)(dotty2Group)
250
+ val dotty1 = compileList(" dotty" , compilerSources ++ backendSources ++ backendJvmSources ++ scalaJSIRSources , opt)(dotty1Group)
251
+ val dotty2 = compileList(" dotty" , compilerSources ++ backendSources ++ backendJvmSources ++ scalaJSIRSources , opt)(dotty2Group)
250
252
251
253
val tests = {
252
254
lib.keepOutput :: dotty1.keepOutput :: {
@@ -263,7 +265,8 @@ class CompilationTests extends ParallelTesting {
263
265
compileShallowFilesInDir(" compiler/src/dotty/tools/dotc/typer" , opt) +
264
266
compileShallowFilesInDir(" compiler/src/dotty/tools/dotc/util" , opt) +
265
267
compileList(" shallow-backend" , backendSources, opt) +
266
- compileList(" shallow-backend-jvm" , backendJvmSources, opt)
268
+ compileList(" shallow-backend-jvm" , backendJvmSources, opt) +
269
+ compileList(" shallow-scalajs-ir" , scalaJSIRSources, opt)
267
270
}.keepOutput :: Nil
268
271
}.map(_.checkCompile())
269
272
@@ -301,27 +304,6 @@ class CompilationTests extends ParallelTesting {
301
304
302
305
compileFilesInDir(" tests/plugins/neg" ).checkExpectedErrors()
303
306
}
304
-
305
- private val (compilerSources, backendSources, backendJvmSources) = {
306
- val compilerDir = Paths .get(" compiler/src" )
307
- val compilerSources0 = sources(Files .walk(compilerDir))
308
-
309
- val backendDir = Paths .get(" scala-backend/src/compiler/scala/tools/nsc/backend" )
310
- val backendJvmDir = Paths .get(" scala-backend/src/compiler/scala/tools/nsc/backend/jvm" )
311
-
312
- // NOTE: Keep these exclusions synchronized with the ones in the sbt build (Build.scala)
313
- val backendExcluded =
314
- List (" JavaPlatform.scala" , " Platform.scala" , " ScalaPrimitives.scala" )
315
- val backendJvmExcluded =
316
- List (" BCodeICodeCommon.scala" , " GenASM.scala" , " GenBCode.scala" , " ScalacBackendInterface.scala" , " BackendStats.scala" )
317
-
318
- val backendSources0 =
319
- sources(Files .list(backendDir), excludedFiles = backendExcluded)
320
- val backendJvmSources0 =
321
- sources(Files .list(backendJvmDir), excludedFiles = backendJvmExcluded)
322
-
323
- (compilerSources0, backendSources0, backendJvmSources0)
324
- }
325
307
}
326
308
327
309
object CompilationTests {
0 commit comments