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/test/OtherEntryPointsTest.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/test/OtherEntryPointsTest.scala')
-rw-r--r-- | test/test/OtherEntryPointsTest.scala | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/test/test/OtherEntryPointsTest.scala b/test/test/OtherEntryPointsTest.scala index abaa043c0..ae46fa36f 100644 --- a/test/test/OtherEntryPointsTest.scala +++ b/test/test/OtherEntryPointsTest.scala @@ -17,10 +17,18 @@ import scala.collection.mutable.ListBuffer * @see [[InterfaceEntryPointTest]] */ class OtherEntryPointsTest { - @Test def runCompiler = { - val sources = List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath()) - val args = sources ++ List("-d", "./out/") + private val sources = + List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath()) + private val dottyInterfaces = + new java.io.File("./interfaces/dotty-interfaces-0.1-SNAPSHOT.jar").getPath + private val dottyLibrary = + new java.io.File("./library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar").getPath + private val args = + sources ++ + List("-d", "./out/") ++ + List("-classpath", dottyInterfaces + ":" + dottyLibrary) + @Test def runCompiler = { val reporter = new CustomReporter val callback = new CustomCompilerCallback @@ -32,9 +40,6 @@ class OtherEntryPointsTest { } @Test def runCompilerWithContext = { - val sources = List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath()) - val args = sources ++ List("-d", "./out/") - val reporter = new CustomReporter val callback = new CustomCompilerCallback val context = (new ContextBase).initialCtx.fresh |