Skip to content

Commit e98caa5

Browse files
committed
Put all link tests in tests/link
1 parent 21f8732 commit e98caa5

File tree

343 files changed

+16
-11
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

343 files changed

+16
-11
lines changed

compiler/test/dotty/tools/dotc/CompilationTests.scala

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -353,13 +353,13 @@ class CompilationTests extends ParallelTesting {
353353

354354
// DCE tests
355355

356-
def linkDCETests = compileFilesInDir("../tests/link-dce", linkDCE ++ classPath)
357-
def linkAggressiveDCETests = compileFilesInDir("../tests/link-dce", linkAggressiveDCE ++ classPath)
358-
def linkStrawmanDCETests = linkTests("../tests/link-strawman-dce", linkDCE ++ strawmanClassPath)
359-
def linkStrawmanAggressiveDCETests = linkTests("../tests/link-strawman-dce", linkAggressiveDCE ++ strawmanClassPath, "-aggressive")
356+
def linkDCETests = compileFilesInDir("../tests/link/dce", linkDCE ++ classPath)
357+
def linkAggressiveDCETests = compileFilesInDir("../tests/link/dce", linkAggressiveDCE ++ classPath)
358+
def linkStrawmanDCETests = linkTests("../tests/link/strawman-dce", linkDCE ++ strawmanClassPath)
359+
def linkStrawmanAggressiveDCETests = linkTests("../tests/link/strawman-dce", linkAggressiveDCE ++ strawmanClassPath, "-aggressive")
360360

361361
def linkStdLibDCE = {
362-
val testsDir = new JFile("../tests/link-stdlib-dce")
362+
val testsDir = new JFile("../tests/link/stdlib-dce")
363363
val tests = for (test <- testsDir.listFiles() if test.isDirectory) yield {
364364
val files = sources(Files.walk(test.toPath))
365365
compileList(test.getName, files, scala2Mode ++ linkDCE ++ stdlibClassPath)
@@ -369,19 +369,24 @@ class CompilationTests extends ParallelTesting {
369369

370370
// specialization tests
371371

372-
def linkSpecializeTests = linkTests("../tests/link-specialize", linkSpecialize ++ utilsOnlyClassPath)
373-
def linkStrawmanSpecializeTests = linkTests("../tests/link-strawman-specialize", linkSpecialize ++ strawmanClassPath)
372+
def linkSpecializeTests = linkTests("../tests/link/specialize", linkSpecialize ++ utilsOnlyClassPath)
373+
def linkStrawmanSpecializeTests = linkTests("../tests/link/strawman-specialize", linkSpecialize ++ strawmanClassPath)
374+
375+
// Plain strawman tests
376+
377+
def strawmanTest = compileFilesInDir("../tests/strawman", basicDefaultOptions ++ strawmanClassPath)
374378

375379
// Run all tests
376380

377381
{
378382
linkDCETests +
379383
linkAggressiveDCETests +
380-
linkStrawmanDCETests +
381-
linkStrawmanAggressiveDCETests +
384+
// linkStrawmanDCETests +
385+
// linkStrawmanAggressiveDCETests +
382386
linkStdLibDCE +
383-
linkSpecializeTests /* +
384-
linkStrawmanSpecializeTests*/
387+
linkSpecializeTests +
388+
// linkStrawmanSpecializeTests +
389+
strawmanTest
385390
}.checkRuns()
386391

387392
libraries.delete()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)