aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2015-11-02 11:40:27 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2015-11-02 19:13:22 +0100
commitfa7e450e893edefd29a0435840ef049a1cc9115d (patch)
treeaf7fe7aaf67baf3230fb52bb4a193f4069148369 /test/dotc/tests.scala
parent432689d1a38cf65da88a1e72e0c0f425850c340e (diff)
downloaddotty-fa7e450e893edefd29a0435840ef049a1cc9115d.tar.gz
dotty-fa7e450e893edefd29a0435840ef049a1cc9115d.tar.bz2
dotty-fa7e450e893edefd29a0435840ef049a1cc9115d.zip
Test compiling sodlib
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index deea12272..42a20f1b2 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -5,6 +5,8 @@ import dotty.partest._
import org.junit.Test
import org.junit.experimental.categories._
+import scala.io.Source
+
class tests extends CompilerTest {
@@ -163,6 +165,13 @@ class tests extends CompilerTest {
@Test def run_all = runFiles(runDir)
+ val stdlibFiles = Source.fromFile("./test/dotc/scala-collections.whitelist", "UTF8").getLines()
+ .map(_.trim) // allow identation
+ .filter(!_.startsWith("#")) // allow comment lines prefixed by #
+ .map(_.takeWhile(_ != "#").trim) // allow comments in the end of line
+ .toList
+
+ @Test def compileStdLib = compileList("compileStdLib", stdlibFiles)
@Test def dotty = compileDir(dottyDir, ".", "-deep" :: "-Ycheck-reentrant" :: allowDeepSubtypes) // note the -deep argument
@Test def dotc_ast = compileDir(dotcDir, "ast")
@@ -207,4 +216,5 @@ class tests extends CompilerTest {
val javaDir = "./tests/pos/java-interop/"
@Test def java_all = compileFiles(javaDir, twice)
//@Test def dotc_compilercommand = compileFile(dotcDir + "config/", "CompilerCommand")
+ */
}