diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-10-23 16:22:00 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:06 +0100 |
commit | bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8 (patch) | |
tree | f60eb742dfe8bb67e8e353a5f0470679abb6bd8b /test/dotc/tests.scala | |
parent | 6351c6cc8c3014fd1fbb8244e872c9e28773dad0 (diff) | |
download | dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.tar.gz dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.tar.bz2 dotty-bbc46b4ad9aecd0998f0fa49f349a91f1d665ca8.zip |
Add dotty-library to classpath in dottydoc tests
Diffstat (limited to 'test/dotc/tests.scala')
-rw-r--r-- | test/dotc/tests.scala | 23 |
1 files changed, 14 insertions, 9 deletions
diff --git a/test/dotc/tests.scala b/test/dotc/tests.scala index 4d3e8e1dd..747396c73 100644 --- a/test/dotc/tests.scala +++ b/test/dotc/tests.scala @@ -19,22 +19,25 @@ class tests extends CompilerTest { // "-Xprompt", // "-explaintypes", // "-Yshow-suppressed-errors", - "-d", defaultOutputDir, - "-pagewidth", "80" + "-pagewidth", "120", + "-d", defaultOutputDir ) - implicit val defaultOptions = noCheckOptions ++ { - if (isRunByJenkins) List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") // should be Ycheck:all, but #725 - else List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") - } ++ List( + val classPath = List( "-Yno-deep-subtypes", "-Yno-double-bindings", "-Yforce-sbt-phases", "-color:never", "-classpath", - "./library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar" + "./library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar" + + ":./interfaces/target/dotty-interfaces-0.1-SNAPSHOT.jar" ) + implicit val defaultOptions = noCheckOptions ++ { + if (isRunByJenkins) List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") // should be Ycheck:all, but #725 + else List("-Ycheck:tailrec,resolveSuper,mixin,restoreScopes,labelDef") + } ++ classPath + val testPickling = List("-Xprint-types", "-Ytest-pickler", "-Ystop-after:pickler", "-Yprintpos") val twice = List("#runs", "2") @@ -191,7 +194,9 @@ class tests extends CompilerTest { ".", List( "-deep", "-Ycheck-reentrant", "-strict", "-classpath", defaultOutputDir + - ":./target/scala-2.11/dotty-compiler_2.11-0.1-SNAPSHOT.jar" //WAT??? + ":./target/scala-2.11/dotty-compiler_2.11-0.1-SNAPSHOT.jar" + + ":./interfaces/target/dotty-interfaces-0.1-SNAPSHOT.jar" + + ":./library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar" ) )(allowDeepSubtypes) // note the -deep argument @@ -214,7 +219,7 @@ class tests extends CompilerTest { @Test def dotc_ast = compileDir(dotcDir, "ast") @Test def dotc_config = compileDir(dotcDir, "config") @Test def dotc_core = compileDir(dotcDir, "core")(allowDeepSubtypes)// twice omitted to make tests run faster - @Test def dotc_core_nocheck = compileDir(dotcDir, "core")(noCheckOptions) + @Test def dotc_core_nocheck = compileDir(dotcDir, "core")(noCheckOptions ++ classPath) // This directory doesn't exist anymore // @Test def dotc_core_pickling = compileDir(coreDir, "pickling")(allowDeepSubtypes)// twice omitted to make tests run faster |