Skip to content

Commit 773ecda

Browse files
committed
re-enable tests
1 parent 7ab0d0e commit 773ecda

File tree

2 files changed

+31
-37
lines changed

2 files changed

+31
-37
lines changed

build.sbt

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,7 @@ lazy val tastytest = configureAsSubproject(project)
798798
.settings(
799799
name := "scala-tastytest",
800800
description := "Scala TASTy Integration Testing Tool",
801-
libraryDependencies ++= List(/*testInterfaceDep,*/ diffUtilsDep, DottySupport.dottyCompiler),
801+
libraryDependencies ++= List(/*testInterfaceDep,*/ diffUtilsDep, TastySupport.dottyCompiler),
802802
pomDependencyExclusions ++= List((organization.value, "scala-repl-frontend"), (organization.value, "scala-compiler-doc")),
803803
fixPom(
804804
"/project/name" -> <name>Scala TASTyTest</name>,
@@ -807,17 +807,6 @@ lazy val tastytest = configureAsSubproject(project)
807807
)
808808
)
809809

810-
// ??? TODO [tasty]: WTF is this?
811-
lazy val scalacheckLib = project.in(file("src") / "scalacheck")
812-
.dependsOn(library)
813-
.settings(commonSettings)
814-
.settings(disableDocs)
815-
.settings(skip in publish := true)
816-
.settings(
817-
name := "scalacheck-lib",
818-
libraryDependencies += testInterfaceDep
819-
)
820-
821810
// An instrumented version of BoxesRunTime and ScalaRunTime for partest's "specialized" test category
822811
lazy val specLib = project.in(file("test") / "instrumented")
823812
.dependsOn(library, reflect, compiler)
@@ -1222,29 +1211,29 @@ lazy val root: Project = (project in file("."))
12221211

12231212
testAll := {
12241213
val results = ScriptCommands.sequence[(Result[Unit], String)](List(
1214+
SavedLogs.clearSavedLogs.result map (_ -> "clearSavedLogs"),
1215+
(testOnly in Test in junit).toTask(" -- +v").result map (_ -> "junit/test"),
1216+
(Keys.test in Test in scalacheck).result map (_ -> "scalacheck/test"),
1217+
partestDesc("run"),
1218+
partestDesc("pos neg jvm"),
1219+
partestDesc("res scalap specialized"),
1220+
partestDesc("instrumented presentation"),
1221+
partestDesc("--srcpath scaladoc"),
1222+
partestDesc("--srcpath macro-annot"),
12251223
(Keys.test in Test in tasty).result map (_ -> "tasty/test"),
1226-
// SavedLogs.clearSavedLogs.result map (_ -> "clearSavedLogs"),
1227-
// (testOnly in Test in junit).toTask(" -- +v").result map (_ -> "junit/test"),
1228-
// (Keys.test in Test in scalacheck).result map (_ -> "scalacheck/test"),
1229-
// partestDesc("run"),
1230-
// partestDesc("pos neg jvm"),
1231-
// partestDesc("res scalap specialized"),
1232-
// partestDesc("instrumented presentation"),
1233-
// partestDesc("--srcpath scaladoc"),
1234-
// partestDesc("--srcpath macro-annot"),
1235-
// (Keys.test in Test in osgiTestFelix).result map (_ -> "osgiTestFelix/test"),
1236-
// (Keys.test in Test in osgiTestEclipse).result map (_ -> "osgiTestEclipse/test"),
1237-
// (mimaReportBinaryIssues in library).result map (_ -> "library/mimaReportBinaryIssues"),
1238-
// (mimaReportBinaryIssues in reflect).result map (_ -> "reflect/mimaReportBinaryIssues"),
1239-
// testJDeps.result map (_ -> "testJDeps"),
1240-
// testJarSize.result map (_ -> "testJarSize"),
1241-
// (compile in Compile in bench).map(_ => ()).result map (_ -> "bench/compile"),
1242-
// Def.task(()).dependsOn( // Run these in parallel:
1243-
// doc in Compile in library,
1244-
// doc in Compile in reflect,
1245-
// doc in Compile in compiler,
1246-
// doc in Compile in scalap
1247-
// ).result map (_ -> "doc")
1224+
(Keys.test in Test in osgiTestFelix).result map (_ -> "osgiTestFelix/test"),
1225+
(Keys.test in Test in osgiTestEclipse).result map (_ -> "osgiTestEclipse/test"),
1226+
(mimaReportBinaryIssues in library).result map (_ -> "library/mimaReportBinaryIssues"),
1227+
(mimaReportBinaryIssues in reflect).result map (_ -> "reflect/mimaReportBinaryIssues"),
1228+
testJDeps.result map (_ -> "testJDeps"),
1229+
testJarSize.result map (_ -> "testJarSize"),
1230+
(compile in Compile in bench).map(_ => ()).result map (_ -> "bench/compile"),
1231+
Def.task(()).dependsOn( // Run these in parallel:
1232+
doc in Compile in library,
1233+
doc in Compile in reflect,
1234+
doc in Compile in compiler,
1235+
doc in Compile in scalap
1236+
).result map (_ -> "doc")
12481237
)).value
12491238
val log = streams.value.log
12501239
val failed = results.collect { case (Inc(i), d) => (i, d) }

project/DottySupport.scala

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@ import sbt.librarymanagement.{
88
ivy, DependencyResolution, ScalaModuleInfo, UpdateConfiguration, UnresolvedWarningConfiguration
99
}
1010

11+
/**
12+
* Settings to support validation of TastyUnpickler against the release of dotty with the matching TASTy version
13+
*/
14+
object TastySupport {
15+
val supportedTASTyRelease = "0.23.0-RC1" // TASTy version 20
16+
val dottyCompiler = "ch.epfl.lamp" % "dotty-compiler_0.23" % supportedTASTyRelease
17+
}
18+
1119
/** Settings needed to compile with Dotty,
1220
* Only active when sbt is started with `sbt -Dscala.build.compileWithDotty=true`
1321
* This is currently only used to check that the standard library compiles with
1422
* Dotty in .travis.yml.
1523
*/
1624
object DottySupport {
1725
val dottyVersion = "0.23.0-RC1"
18-
val currentDottyRelease = "0.23.0-RC1" // TASTy version 20
19-
val dottyLibrary = "ch.epfl.lamp" % "dotty-library_0.23" % currentDottyRelease
20-
val dottyCompiler = "ch.epfl.lamp" % "dotty-compiler_0.23" % currentDottyRelease
2126
val compileWithDotty: Boolean =
2227
Option(System.getProperty("scala.build.compileWithDotty")).map(_.toBoolean).getOrElse(false)
2328
lazy val commonSettings = Seq(

0 commit comments

Comments
 (0)