aboutsummaryrefslogtreecommitdiff
path: root/test/test/InterfaceEntryPointTest.scala
diff options
context:
space:
mode:
authorFelix Mulder <felix.mulder@gmail.com>2016-10-19 15:30:27 +0200
committerGuillaume Martres <smarter@ubuntu.com>2016-11-22 01:35:06 +0100
commit6351c6cc8c3014fd1fbb8244e872c9e28773dad0 (patch)
tree27c6642fbd02a13f0032934cd3f8dde6992e3f44 /test/test/InterfaceEntryPointTest.scala
parent805884cb664467ae97922e1afe44891c64fcfde2 (diff)
downloaddotty-6351c6cc8c3014fd1fbb8244e872c9e28773dad0.tar.gz
dotty-6351c6cc8c3014fd1fbb8244e872c9e28773dad0.tar.bz2
dotty-6351c6cc8c3014fd1fbb8244e872c9e28773dad0.zip
Create dotty-lib.jar for run tests
Diffstat (limited to 'test/test/InterfaceEntryPointTest.scala')
-rw-r--r--test/test/InterfaceEntryPointTest.scala15
1 files changed, 13 insertions, 2 deletions
diff --git a/test/test/InterfaceEntryPointTest.scala b/test/test/InterfaceEntryPointTest.scala
index 438a9fa47..a1a8433d7 100644
--- a/test/test/InterfaceEntryPointTest.scala
+++ b/test/test/InterfaceEntryPointTest.scala
@@ -18,8 +18,17 @@ import scala.collection.mutable.ListBuffer
*/
class InterfaceEntryPointTest {
@Test def runCompilerFromInterface = {
- val sources = List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath())
- val args = sources ++ List("-d", "./out/")
+ val sources =
+ List("./tests/pos/HelloWorld.scala").map(p => new java.io.File(p).getPath())
+ val dottyInterfaces =
+ new java.io.File("./interfaces/dotty-interfaces-0.1-SNAPSHOT.jar").getPath
+ val dottyLibrary =
+ new java.io.File("./library/target/scala-2.11/dotty-library_2.11-0.1-SNAPSHOT.jar").getPath
+
+ val args =
+ sources ++
+ List("-d", "./out/") ++
+ List("-classpath", dottyInterfaces + ":" + dottyLibrary)
val mainClass = Class.forName("dotty.tools.dotc.Main")
val process = mainClass.getMethod("process",
@@ -45,6 +54,8 @@ class InterfaceEntryPointTest {
errorCount += 1
if (diag.level == Diagnostic.WARNING)
warningCount += 1
+
+ println(diag.message)
}
}