aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotc/comptest.scala
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/test/dotc/comptest.scala')
-rw-r--r--compiler/test/dotc/comptest.scala29
1 files changed, 15 insertions, 14 deletions
diff --git a/compiler/test/dotc/comptest.scala b/compiler/test/dotc/comptest.scala
index 5ae1823e8..b1a6fa266 100644
--- a/compiler/test/dotc/comptest.scala
+++ b/compiler/test/dotc/comptest.scala
@@ -1,24 +1,25 @@
package dotc
-import dotty.tools.dotc.CompilerTest
+import dotty.tools.dotc.ParallelTesting
-object comptest extends CompilerTest {
+object comptest extends ParallelTesting {
- override val generatePartestFiles = false
- val defaultOutputDir: String = ""
+ implicit val defaultOutputDir: String = "."
val posDir = "./tests/pos/"
val negDir = "./tests/neg/"
val dotcDir = "./src/dotty/"
- def main(args: Array[String]) =
- compileList("comptest", List(
- dotcDir + "tools/dotc/CompilationUnit.scala",
- dotcDir + "tools/dotc/core/Types.scala",
- dotcDir + "tools/dotc/ast/Trees.scala"), List(
- "#runs", "2",
- "-Ylog:frontend",
- "-Xprompt"))(Nil)
-
-// compileDir(dotcDir + "tools/dotc/", "printing", List("-Xprompt", "-Ylog:frontend", "#runs", "2", "-uniqid"))
+ def main(args: Array[String]): Unit =
+ compileList(
+ List(
+ dotcDir + "tools/dotc/CompilationUnit.scala",
+ dotcDir + "tools/dotc/core/Types.scala",
+ dotcDir + "tools/dotc/ast/Trees.scala"
+ ),
+ Array(
+ "-Ylog:frontend",
+ "-Xprompt"
+ )
+ )
}