diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2017-04-12 12:21:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-12 12:21:30 +0200 |
commit | d541452940007bbc094e8a7f6785b6f8e9e7da22 (patch) | |
tree | fa5d9fd6b11fe9284ccff9c841a95598dc8e43d2 /compiler/test/dotty/partest/DPConfig.scala | |
parent | 741ee1645a13c94fbb7edfd064b4ec092a69b1bf (diff) | |
parent | f6d519ab713cac49c6228f142cc4ccfc8880ef10 (diff) | |
download | dotty-d541452940007bbc094e8a7f6785b6f8e9e7da22.tar.gz dotty-d541452940007bbc094e8a7f6785b6f8e9e7da22.tar.bz2 dotty-d541452940007bbc094e8a7f6785b6f8e9e7da22.zip |
Merge pull request #2194 from dotty-staging/topic/hydra-part-2
Killing partest part 2 - Enter the Vulpix
Diffstat (limited to 'compiler/test/dotty/partest/DPConfig.scala')
-rw-r--r-- | compiler/test/dotty/partest/DPConfig.scala | 40 |
1 files changed, 0 insertions, 40 deletions
diff --git a/compiler/test/dotty/partest/DPConfig.scala b/compiler/test/dotty/partest/DPConfig.scala deleted file mode 100644 index 5c493f465..000000000 --- a/compiler/test/dotty/partest/DPConfig.scala +++ /dev/null @@ -1,40 +0,0 @@ -package dotty.partest - -import scala.collection.JavaConversions._ -import scala.reflect.io.Path -import java.io.File - -import scala.tools.partest.PartestDefaults - - -/** Dotty Partest runs all tests in the provided testDirs located under - * testRoot. There can be several directories with pos resp. neg tests, as - * long as the prefix is pos/neg. - * - * Each testDir can also have a __defaultFlags.flags file, which provides - * compiler flags and is used unless there's a specific flags file (e.g. for - * test pos/A.scala, if there's a pos/A.flags file those flags are used, - * otherwise pos/__defaultFlags.flags are used if the file exists). - */ -object DPConfig { - /** Options used for _running_ the run tests. - * Note that this is different from the options used when _compiling_ tests, - * those are determined by the sbt configuration. - */ - val runJVMOpts = s"-Xms64M -Xmx1024M ${PartestDefaults.javaOpts}" - - val testRoot = (Path("..") / Path("tests") / Path("partest-generated")).toString - val genLog = Path(testRoot) / Path("gen.log") - - lazy val testDirs = { - val root = new File(testRoot) - val dirs = if (!root.exists) Array.empty[String] else root.listFiles.filter(_.isDirectory).map(_.getName) - if (dirs.isEmpty) - throw new Exception("Partest did not detect any generated sources") - dirs - } - - // Tests finish faster when running in parallel, but console output is - // out of order and sometimes the compiler crashes - val runTestsInParallel = true -} |