aboutsummaryrefslogtreecommitdiff
path: root/test/dotc/tests.scala
diff options
context:
space:
mode:
authorDmitry Petrashko <dmitry.petrashko@gmail.com>2014-12-15 12:00:01 +0100
committerDmitry Petrashko <dmitry.petrashko@gmail.com>2014-12-16 13:15:04 +0100
commit4c112037290a526c66bbb782a61bcd8a60730b4b (patch)
tree00726d1d4a697d197e327e45e5839faee170827f /test/dotc/tests.scala
parentc3bdd0b51b228ad689cf1cb42703b3fc5b28a577 (diff)
downloaddotty-4c112037290a526c66bbb782a61bcd8a60730b4b.tar.gz
dotty-4c112037290a526c66bbb782a61bcd8a60730b4b.tar.bz2
dotty-4c112037290a526c66bbb782a61bcd8a60730b4b.zip
Enable backend specific tests. Flag those that fail
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r--test/dotc/tests.scala40
1 files changed, 25 insertions, 15 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala
index 2fe6be757..b156d8878 100644
--- a/test/dotc/tests.scala
+++ b/test/dotc/tests.scala
@@ -16,11 +16,16 @@ class tests extends CompilerTest {
implicit val defaultOptions = noCheckOptions ++ List(
"-Yno-deep-subtypes",
"-Ycheck:resolveSuper,mixin,restoreScopes",
- "-dest", "./out/",
- "-Ystop-before:collectEntryPoints"
+ "-d", "./out/"
)
val doEmitBytecode = List("-Ystop-before:terminal")
+ val failedbyName = List("-Ystop-before:collectEntryPoints") // #288
+ val failedUnderscore = List("-Ystop-before:collectEntryPoints") // #289
+
+ val failedOther = List("-Ystop-before:collectEntryPoints") // some non-obvious reason. need to look deeper
+
+
val twice = List("#runs", "2", "-YnoDoubleBindings")
@@ -32,7 +37,6 @@ class tests extends CompilerTest {
val newDir = "./tests/new/"
val dotcDir = "./src/dotty/"
-
@Test def pos_t2168_pat = compileFile(posDir, "t2168")
@Test def pos_erasure = compileFile(posDir, "erasure")
@Test def pos_Coder() = compileFile(posDir, "Coder")
@@ -65,7 +69,8 @@ class tests extends CompilerTest {
@Test def pos_subtyping = compileFile(posDir, "subtyping")
@Test def pos_t2613 = compileFile(posSpecialDir, "t2613")(allowDeepSubtypes)
- @Test def pos_all = compileFiles(posDir, twice)
+ @Test def pos_all = compileFiles(posDir, failedOther)
+
@Test def new_all = compileFiles(newDir, twice)
@Test def neg_blockescapes() = compileFile(negDir, "blockescapesNeg", xerrors = 1)
@@ -115,19 +120,24 @@ class tests extends CompilerTest {
@Test def neg_i0248_inherit_refined = compileFile(negDir, "i0248-inherit-refined", xerrors = 4)
@Test def neg_i0281 = compileFile(negDir, "i0281-null-primitive-conforms", xerrors = 3)
- @Test def dotc = compileDir(dotcDir + "tools/dotc", twice)(allowDeepSubtypes)
- @Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast", twice)
- @Test def dotc_config = compileDir(dotcDir + "tools/dotc/config", twice)
- @Test def dotc_core = compileDir(dotcDir + "tools/dotc/core", twice)(allowDeepSubtypes)
- @Test def dotc_core_pickling = compileDir(dotcDir + "tools/dotc/core/pickling", twice)(allowDeepSubtypes)
- @Test def dotc_transform = compileDir(dotcDir + "tools/dotc/transform", twice)(allowDeepSubtypes)
+ @Test def dotc = compileDir(dotcDir + "tools/dotc", failedOther)(allowDeepSubtypes)
+ @Test def dotc_ast = compileDir(dotcDir + "tools/dotc/ast", failedOther) // similar to dotc_config
+ @Test def dotc_config = compileDir(dotcDir + "tools/dotc/config", failedOther) // seems to mess up stack frames
+ @Test def dotc_core = compileDir(dotcDir + "tools/dotc/core", failedUnderscore)(allowDeepSubtypes)
+ // fails due to This refference to a non-eclosing class. Need to check
+
+ @Test def dotc_core_pickling = compileDir(dotcDir + "tools/dotc/core/pickling", failedOther)(allowDeepSubtypes) // Cannot emit primitive conversion from V to Z
- @Test def dotc_parsing = compileDir(dotcDir + "tools/dotc/parsing", twice)
+ @Test def dotc_transform = compileDir(dotcDir + "tools/dotc/transform", failedbyName)(allowDeepSubtypes)
+
+ @Test def dotc_parsing = compileDir(dotcDir + "tools/dotc/parsing", failedOther)
+ // Expected primitive types I - Ljava/lang/Object
+ // Tried to return an object where expected type was Integer
@Test def dotc_printing = compileDir(dotcDir + "tools/dotc/printing", twice)
@Test def dotc_reporting = compileDir(dotcDir + "tools/dotc/reporting", twice)
- @Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer", twice)
- @Test def dotc_util = compileDir(dotcDir + "tools/dotc/util", twice)
- @Test def tools_io = compileDir(dotcDir + "tools/io", twice)
+ @Test def dotc_typer = compileDir(dotcDir + "tools/dotc/typer", failedOther) // similar to dotc_config
+ //@Test def dotc_util = compileDir(dotcDir + "tools/dotc/util") //fails inside ExtensionMethods with ClassCastException
+ @Test def tools_io = compileDir(dotcDir + "tools/io", failedOther) // similar to dotc_config
@Test def helloWorld = compileFile(posDir, "HelloWorld", doEmitBytecode)
@Test def labels = compileFile(posDir, "Labels", doEmitBytecode)
@@ -137,7 +147,7 @@ class tests extends CompilerTest {
dotcDir + "tools/dotc/CompilationUnit.scala",
dotcDir + "tools/dotc/core/Types.scala",
dotcDir + "tools/dotc/ast/Trees.scala",
- //"-Ylog:frontend",
+ failedUnderscore.head,
"-Xprompt",
"#runs", "2"))