diff options
author | Felix Mulder <felix.mulder@gmail.com> | 2016-10-19 15:30:27 +0200 |
---|---|---|
committer | Guillaume Martres <smarter@ubuntu.com> | 2016-11-22 01:35:06 +0100 |
commit | 6351c6cc8c3014fd1fbb8244e872c9e28773dad0 (patch) | |
tree | 27c6642fbd02a13f0032934cd3f8dde6992e3f44 /project/Build.scala | |
parent | 805884cb664467ae97922e1afe44891c64fcfde2 (diff) | |
download | dotty-6351c6cc8c3014fd1fbb8244e872c9e28773dad0.tar.gz dotty-6351c6cc8c3014fd1fbb8244e872c9e28773dad0.tar.bz2 dotty-6351c6cc8c3014fd1fbb8244e872c9e28773dad0.zip |
Create dotty-lib.jar for run tests
Diffstat (limited to 'project/Build.scala')
-rw-r--r-- | project/Build.scala | 35 |
1 files changed, 29 insertions, 6 deletions
diff --git a/project/Build.scala b/project/Build.scala index fbbd20128..7e48e2ddd 100644 --- a/project/Build.scala +++ b/project/Build.scala @@ -137,7 +137,7 @@ object DottyBuild extends Build { val args = Def.spaceDelimited("<arg>").parsed val jars = Seq((packageBin in Compile).value.getAbsolutePath) ++ getJarPaths(partestDeps.value, ivyPaths.value.ivyHome) - val dottyJars = "-dottyJars " + (jars.length + 2) + " dotty.jar dotty-lib.jar" + " " + jars.mkString(" ") + val dottyJars = "-dottyJars " + (jars.length + 1) + " dotty-lib.jar" + " " + jars.mkString(" ") // Provide the jars required on the classpath of run tests runTask(Test, "dotty.partest.DPConsoleRunner", dottyJars + " " + args.mkString(" ")) }, @@ -191,7 +191,7 @@ object DottyBuild extends Build { path = file.getAbsolutePath } yield "-Xbootclasspath/p:" + path // dotty itself needs to be in the bootclasspath - val fullpath = ("-Xbootclasspath/p:" + "dotty.jar") :: ("-Xbootclasspath/a:" + bin) :: path.toList + val fullpath = /*("-Xbootclasspath/p:" + "dotty.jar") ::*/ ("-Xbootclasspath/a:" + bin) :: path.toList // System.err.println("BOOTPATH: " + fullpath) val travis_build = // propagate if this is a travis build @@ -211,10 +211,33 @@ object DottyBuild extends Build { } ). settings( - addCommandAlias("partest", ";test:package;package;test:runMain dotc.build;lockPartestFile;test:test;runPartestRunner") ++ - addCommandAlias("partest-only", ";test:package;package;test:runMain dotc.build;lockPartestFile;test:test-only dotc.tests;runPartestRunner") ++ - addCommandAlias("partest-only-no-bootstrap", ";test:package;package; lockPartestFile;test:test-only dotc.tests;runPartestRunner") ++ - addCommandAlias("dottydoc", ";dottydoc/run") + addCommandAlias( + "partest", + ";test:package" + + ";dotty-compiler/package" + + ";dotty-library/package" + + ";test:runMain dotc.build" + + ";lockPartestFile" + + ";test:test" + + ";runPartestRunner" + ) ++ + addCommandAlias("partest-only", + ";test:package" + + ";dotty-compiler/package" + + ";dotty-library/package" + + ";test:runMain dotc.build" + + ";lockPartestFile" + + ";test:test-only dotc.tests" + + ";runPartestRunner" + ) ++ + addCommandAlias( + "partest-only-no-bootstrap", + ";test:package" + + ";package" + + ";lockPartestFile" + + ";test:test-only dotc.tests" + + ";runPartestRunner" + ) ). settings(publishing) |