@@ -239,12 +239,10 @@ class CompilationTests extends ParallelTesting {
239
239
defaultOptions.and(" -Ycheck-reentrant" , " -strict" , " -priorityclasspath" , defaultOutputDir))(libGroup)
240
240
241
241
val compilerSources = sources(Paths .get(" compiler/src" ))
242
+ val compilerManagedSources = sources(Properties .dottyCompilerManagedSources)
242
243
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)
248
246
249
247
val tests = {
250
248
lib.keepOutput :: dotty1.keepOutput :: {
@@ -262,7 +260,7 @@ class CompilationTests extends ParallelTesting {
262
260
compileShallowFilesInDir(" compiler/src/dotty/tools/dotc/util" , opt) +
263
261
compileShallowFilesInDir(" compiler/src/dotty/tools/backend" , opt) +
264
262
compileShallowFilesInDir(" compiler/src/dotty/tools/backend/jvm" , opt) +
265
- compileList(" shallow-scalajs-ir " , scalaJSIRSources , opt)
263
+ compileList(" managed-sources " , compilerManagedSources , opt)
266
264
}.keepOutput :: Nil
267
265
}.map(_.checkCompile())
268
266
@@ -274,29 +272,6 @@ class CompilationTests extends ParallelTesting {
274
272
275
273
tests.foreach(_.delete())
276
274
}
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
- }
300
275
}
301
276
302
277
object CompilationTests {
0 commit comments