aboutsummaryrefslogtreecommitdiff
path: root/compiler/test/dotc/comptest.scala
blob: dce002c81522fbfc0616721c62bde4b4f448c375 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
package dotc

import dotty.tools.dotc.ParallelTesting

object comptest extends ParallelTesting {

  def isInteractive = true
  def testFilter = None

  implicit val defaultOutputDir: String = "."

  val posDir = "./tests/pos/"
  val negDir = "./tests/neg/"
  val dotcDir = "./src/dotty/"

  def main(args: Array[String]): Unit =
    compileList(
      "comptest",
      List(
        dotcDir + "tools/dotc/CompilationUnit.scala",
        dotcDir + "tools/dotc/core/Types.scala",
        dotcDir + "tools/dotc/ast/Trees.scala"
      ),
      Array(
        "-Ylog:frontend",
        "-Xprompt"
      )
  )
}