@@ -239,12 +239,10 @@ class CompilationTests extends ParallelTesting {
239239 defaultOptions.and(" -Ycheck-reentrant" , " -strict" , " -priorityclasspath" , defaultOutputDir))(libGroup)
240240
241241 val compilerSources = sources(Paths .get(" compiler/src" ))
242+ val compilerManagedSources = sources(Properties .dottyCompilerManagedSources)
242243
243- val scalaJSIRDir = Paths .get(" compiler/target/scala-2.12/src_managed/main/scalajs-ir-src/org/scalajs/ir" )
244- val scalaJSIRSources = sources(scalaJSIRDir, shallow = true )
245-
246- val dotty1 = compileList(" dotty" , compilerSources ++ scalaJSIRSources, opt)(dotty1Group)
247- val dotty2 = compileList(" dotty" , compilerSources ++ scalaJSIRSources, opt)(dotty2Group)
244+ val dotty1 = compileList(" dotty" , compilerSources ++ compilerManagedSources, opt)(dotty1Group)
245+ val dotty2 = compileList(" dotty" , compilerSources ++ compilerManagedSources, opt)(dotty2Group)
248246
249247 val tests = {
250248 lib.keepOutput :: dotty1.keepOutput :: {
@@ -262,7 +260,7 @@ class CompilationTests extends ParallelTesting {
262260 compileShallowFilesInDir(" compiler/src/dotty/tools/dotc/util" , opt) +
263261 compileShallowFilesInDir(" compiler/src/dotty/tools/backend" , opt) +
264262 compileShallowFilesInDir(" compiler/src/dotty/tools/backend/jvm" , opt) +
265- compileList(" shallow-scalajs-ir " , scalaJSIRSources , opt)
263+ compileList(" managed-sources " , compilerManagedSources , opt)
266264 }.keepOutput :: Nil
267265 }.map(_.checkCompile())
268266
@@ -274,29 +272,6 @@ class CompilationTests extends ParallelTesting {
274272
275273 tests.foreach(_.delete())
276274 }
277-
278- @ Test def testPlugins : Unit = {
279- val pluginFile = " plugin.properties"
280-
281- // 1. hack with absolute path for -Xplugin
282- // 2. copy `pluginFile` to destination
283- def compileFilesInDir (dir : String ): CompilationTest = {
284- val outDir = defaultOutputDir + " testPlugins/"
285- val sourceDir = new java.io.File (dir)
286-
287- val dirs = sourceDir.listFiles.toList.filter(_.isDirectory)
288- val targets = dirs.map { dir =>
289- val compileDir = createOutputDirsForDir(dir, sourceDir, outDir)
290- Files .copy(dir.toPath.resolve(pluginFile), compileDir.toPath.resolve(pluginFile), StandardCopyOption .REPLACE_EXISTING )
291- val flags = TestFlags (withCompilerClasspath, noCheckOptions).and(" -Xplugin:" + compileDir.getAbsolutePath)
292- SeparateCompilationSource (" testPlugins" , dir, flags, compileDir)
293- }
294-
295- new CompilationTest (targets)
296- }
297-
298- compileFilesInDir(" tests/plugins/neg" ).checkExpectedErrors()
299- }
300275}
301276
302277object CompilationTests {
0 commit comments