@@ -216,8 +216,7 @@ class CompilationTests extends ParallelTesting {
216216 defaultOutputDir + dotty1Group + " /dotty/" + sep +
217217 // and the other compiler dependenies:
218218 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,
221220 Array (" -Ycheck-reentrant" , " -Yemit-tasty-in-class" )
222221 )
223222
@@ -233,6 +232,7 @@ class CompilationTests extends ParallelTesting {
233232
234233 val backendDir = Paths .get(" scala-backend/src/compiler/scala/tools/nsc/backend" )
235234 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" )
236236
237237 // NOTE: Keep these exclusions synchronized with the ones in the sbt build (Build.scala)
238238 val backendExcluded =
@@ -244,9 +244,11 @@ class CompilationTests extends ParallelTesting {
244244 sources(Files .list(backendDir), excludedFiles = backendExcluded)
245245 val backendJvmSources =
246246 sources(Files .list(backendJvmDir), excludedFiles = backendJvmExcluded)
247+ val scalaJSIRSources =
248+ sources(Files .list(scalaJSIRDir))
247249
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)
250252
251253 val tests = {
252254 lib.keepOutput :: dotty1.keepOutput :: {
@@ -263,7 +265,8 @@ class CompilationTests extends ParallelTesting {
263265 compileShallowFilesInDir(" compiler/src/dotty/tools/dotc/typer" , opt) +
264266 compileShallowFilesInDir(" compiler/src/dotty/tools/dotc/util" , opt) +
265267 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)
267270 }.keepOutput :: Nil
268271 }.map(_.checkCompile())
269272
@@ -301,27 +304,6 @@ class CompilationTests extends ParallelTesting {
301304
302305 compileFilesInDir(" tests/plugins/neg" ).checkExpectedErrors()
303306 }
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- }
325307}
326308
327309object CompilationTests {
0 commit comments