Skip to content

Commit f75bbdf

Browse files
committed
Put related tests in same top level output directory
1 parent 162867f commit f75bbdf

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,10 +240,10 @@ class CompilationTests extends ParallelTesting {
240240
* version of Dotty
241241
*/
242242
@Test def tastyBootstrap: Unit = {
243-
implicit val testGroup: TestGroup = TestGroup("tastyBootstrap")
244-
val dotty1Group = TestGroup("dotty1")
245-
val dotty2Group = TestGroup("dotty2")
246-
val libGroup = TestGroup("lib")
243+
implicit val testGroup: TestGroup = TestGroup("tastyBootstrap/tests")
244+
val dotty1Group = TestGroup("tastyBootstrap/dotty1")
245+
val dotty2Group = TestGroup("tastyBootstrap/dotty2")
246+
val libGroup = TestGroup("tastyBootstrap/lib")
247247

248248
val opt = TestFlags(
249249
// compile with bootstrapped library on cp:

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,17 @@ class IdempotencyTests extends ParallelTesting {
3737
val strawmanSourcesRevSorted = strawmanSourcesSorted.reverse
3838

3939
val posIdempotency = {
40-
compileFilesInDir("../tests/pos", opt)(TestGroup("posIdempotency1")) +
41-
compileFilesInDir("../tests/pos", opt)(TestGroup("posIdempotency2"))
40+
compileFilesInDir("../tests/pos", opt)(TestGroup("idempotency/posIdempotency1")) +
41+
compileFilesInDir("../tests/pos", opt)(TestGroup("idempotency/posIdempotency2"))
4242
}
4343

4444
val orderIdempotency = {
4545
(for {
4646
testDir <- new JFile("../tests/order-idempotency").listFiles() if testDir.isDirectory
4747
} yield {
4848
val sources = sourcesFrom(testDir.toPath)
49-
compileList(testDir.getName, sources, opt)(TestGroup("orderIdempotency1")) +
50-
compileList(testDir.getName, sources.reverse, opt)(TestGroup("orderIdempotency2"))
49+
compileList(testDir.getName, sources, opt)(TestGroup("idempotency/orderIdempotency1")) +
50+
compileList(testDir.getName, sources.reverse, opt)(TestGroup("idempotency/orderIdempotency2"))
5151
}).reduce(_ + _)
5252
}
5353

@@ -60,7 +60,7 @@ class IdempotencyTests extends ParallelTesting {
6060

6161
def check(name: String) = {
6262
val files = List(s"../tests/idempotency/$name.scala", "../tests/idempotency/IdempotencyCheck.scala")
63-
compileList(name, files, defaultOptions)(TestGroup("check"))
63+
compileList(name, files, defaultOptions)(TestGroup("idempotency/check"))
6464
}
6565
val allChecks = {
6666
check("CheckOrderIdempotency") +

compiler/test/dotty/tools/dotc/LinkOptimiseTests.scala renamed to compiler/test/dotty/tools/dotc/LinkTests.scala

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ import vulpix._
1212
import scala.concurrent.duration._
1313
import scala.collection.JavaConverters._
1414

15-
class LinkOptimiseTests extends ParallelTesting {
15+
class LinkTests extends ParallelTesting {
1616
import ParallelTesting._
1717
import TestConfiguration._
18-
import LinkOptimiseTests._
18+
import LinkTests._
1919

2020
// Test suite configuration --------------------------------------------------
2121

@@ -26,12 +26,12 @@ class LinkOptimiseTests extends ParallelTesting {
2626
def testFilter = Properties.testsFilter
2727

2828

29-
@Test def linkOptimise: Unit = {
29+
@Test def linkTest: Unit = {
3030
// Setup and compile libraries
31-
val strawmanLibGroup = TestGroup("strawmanLibrary")
31+
val strawmanLibGroup = TestGroup("linkTest/strawmanLibrary")
3232
val strawmanLibTestGroup = TestGroup(strawmanLibGroup + "/tests")
3333

34-
val linkCustomLibGroup = TestGroup("linkCustomLib")
34+
val linkCustomLibGroup = TestGroup("linkTest/linkCustomLib")
3535
val linkCustomLibTestGroup = TestGroup(linkCustomLibGroup + "/tests")
3636

3737
val strawmanLibrary = compileDir("../collection-strawman/collections/src/main", defaultOptions)(strawmanLibGroup)
@@ -87,7 +87,7 @@ class LinkOptimiseTests extends ParallelTesting {
8787

8888
}
8989

90-
object LinkOptimiseTests {
90+
object LinkTests {
9191
implicit val summaryReport: SummaryReporting = new SummaryReport
9292
@AfterClass def cleanup(): Unit = summaryReport.echoSummary()
9393
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
object Test {
33
def main(args: Array[String]): Unit =
4-
IdempotencyCheck.checkIdempotency("../out/dotty1", "../out/dotty2")
4+
IdempotencyCheck.checkIdempotency("../out/tastyBootstrap/dotty1", "../out/tastyBootstrap/dotty2")
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
object Test {
33
def main(args: Array[String]): Unit =
4-
IdempotencyCheck.checkIdempotency("../out/orderIdempotency1", "../out/orderIdempotency2")
4+
IdempotencyCheck.checkIdempotency("../out/idempotency/orderIdempotency1", "../out/idempotency/orderIdempotency2")
55
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

22
object Test {
33
def main(args: Array[String]): Unit =
4-
IdempotencyCheck.checkIdempotency("../out/posIdempotency1", "../out/posIdempotency2")
4+
IdempotencyCheck.checkIdempotency("../out/idempotency/posIdempotency1", "../out/idempotency/posIdempotency2")
55
}

0 commit comments

Comments
 (0)