From 6942127668d0c9fe60e4b11d952adf2f7e1fee72 Mon Sep 17 00:00:00 2001 From: Martin Odersky Date: Sat, 9 Apr 2016 12:28:06 +0200 Subject: Rearrange pickle tests 1) Move passing test to pickling 2) Add test case for #1212 in pending 3) Disable annotations/internal in pickling tests. They lead to a stable symbol error which is explainable (modifiers are read before symbol is created). --- test/dotc/tests.scala | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 51b8b3dc5..a7d2873a5 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -200,7 +200,10 @@ class tests extends CompilerTest { @Test def tasty_new_all = compileFiles(newDir, testPickling) @Test def tasty_dotty = compileDir(sourceDir, "dotty", testPickling) - @Test def tasty_annotation_internal = compileDir(s"${dottyDir}annotation/", "internal", testPickling) + + // Disabled because we get stale symbol errors on the SourceFile annotation, which is normal. + // @Test def tasty_annotation_internal = compileDir(s"${dottyDir}annotation/", "internal", testPickling) + @Test def tasty_runtime = compileDir(s"$dottyDir", "runtime", testPickling) //TODO: issues with ./src/dotty/runtime/vc/VCPrototype.scala -- cgit v1.2.3 From 7ea24c63ad57029b8e68ff00f5978e0e9058f60b Mon Sep 17 00:00:00 2001 From: VladimirNik Date: Wed, 13 Apr 2016 19:11:03 +0200 Subject: Update TASTY tests for dotty/src --- test/dotc/tests.scala | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) (limited to 'test') diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index a7d2873a5..b646c72d5 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -205,9 +205,7 @@ class tests extends CompilerTest { // @Test def tasty_annotation_internal = compileDir(s"${dottyDir}annotation/", "internal", testPickling) @Test def tasty_runtime = compileDir(s"$dottyDir", "runtime", testPickling) - - //TODO: issues with ./src/dotty/runtime/vc/VCPrototype.scala - //@Test def tasty_runtime_vc = compileDir(s"${dottyDir}runtime/", "vc", testPickling) + @Test def tasty_runtime_vc = compileDir(s"${dottyDir}runtime/", "vc", testPickling) @Test def tasty_tools = compileDir(dottyDir, "tools", testPickling) @@ -217,11 +215,7 @@ class tests extends CompilerTest { "scalaPrimitives.scala" ) map (s"${backendDir}jvm/" + _), testPickling) - //TODO: issue with ./src/dotty/tools/backend/sjs/JSCodeGen.scala - @Test def tasty_backend_sjs = compileList("tasty_backend_sjs", List( - "GenSJSIR.scala", "JSDefinitions.scala", "JSEncoding.scala", "JSInterop.scala", - "JSPositions.scala", "JSPrimitives.scala", "ScopedVar.scala" - ) map (s"${backendDir}sjs/" + _), testPickling) + @Test def tasty_backend_sjs = compileDir(s"${backendDir}", "sjs", testPickling) @Test def tasty_dotc = compileDir(toolsDir, "dotc", testPickling) @Test def tasty_dotc_ast = compileDir(dotcDir, "ast", testPickling) @@ -252,12 +246,7 @@ class tests extends CompilerTest { @Test def tasty_dotc_printing = compileDir(dotcDir, "printing", testPickling) - //TODO: issues with ./src/dotty/tools/dotc/repl/CompilingInterpreter.scala, - //./src/dotty/tools/dotc/repl/InterpreterLoop.scala - @Test def tasty_dotc_repl = compileList("tasty_dotc_repl", List( - "AbstractFileClassLoader.scala", "ConsoleWriter.scala", "InteractiveReader.scala", - "Interpreter.scala", "Main.scala", "NewLinePrintWriter.scala", "REPL.scala", "SimpleReader.scala" - ) map (dottyReplDir + _), testPickling) + @Test def tasty_dotc_repl = compileDir(dotcDir, "repl", testPickling) //@Test def tasty_dotc_reporting = compileDir(dotcDir, "reporting", testPickling) @Test def tasty_dotc_rewrite = compileDir(dotcDir, "rewrite", testPickling) -- cgit v1.2.3