Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update sbt-plugin tests to use new linking tasks
- Loading branch information
Showing
5 changed files
with
25 additions
and
25 deletions.
There are no files selected for viewing
20 changes: 10 additions & 10 deletions
20
sbt-plugin/src/sbt-test/incremental/change-config-and-source/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
$ copy-file Main.scala.first Main.scala | ||
> fastOptJS | ||
$ copy-file target/scala-2.12/change-config-and-source-fastopt.js target/scala-2.12/output-1.js | ||
> fastLinkJS | ||
$ copy-file target/scala-2.12/change-config-and-source-dev/main.js target/scala-2.12/output-1.js | ||
|
||
# When the linker config and source both change, re-running fastOptJS should re-link: | ||
# When the linker config and source both change, re-running fastLinkJS should re-link: | ||
> set scalaJSLinkerConfig ~= (_.withOptimizer(false)) | ||
$ copy-file Main.scala.second Main.scala | ||
> fastOptJS | ||
-$ must-mirror target/scala-2.12/change-config-and-source-fastopt.js target/scala-2.12/output-1.js | ||
$ newer target/scala-2.12/change-config-and-source-fastopt.js target/scala-2.12/output-1.js | ||
$ copy-file target/scala-2.12/change-config-and-source-fastopt.js target/scala-2.12/output-2.js | ||
> fastLinkJS | ||
-$ must-mirror target/scala-2.12/change-config-and-source-dev/main.js target/scala-2.12/output-1.js | ||
$ newer target/scala-2.12/change-config-and-source-dev/main.js target/scala-2.12/output-1.js | ||
$ copy-file target/scala-2.12/change-config-and-source-dev/main.js target/scala-2.12/output-2.js | ||
|
||
# However, this re-linking should not happen more than once: | ||
> fastOptJS | ||
$ must-mirror target/scala-2.12/change-config-and-source-fastopt.js target/scala-2.12/output-2.js | ||
-$ newer target/scala-2.12/change-config-and-source-fastopt.js target/scala-2.12/output-2.js | ||
> fastLinkJS | ||
$ must-mirror target/scala-2.12/change-config-and-source-dev/main.js target/scala-2.12/output-2.js | ||
-$ newer target/scala-2.12/change-config-and-source-dev/main.js target/scala-2.12/output-2.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
> fastOptJS | ||
$ copy-file target/scala-2.12/change-config-fastopt.js target/scala-2.12/output-1.js | ||
> fastLinkJS | ||
$ copy-file target/scala-2.12/change-config-dev/main.js target/scala-2.12/output-1.js | ||
|
||
# When the linker config changes, re-running fastOptJS should re-link: | ||
# When the linker config changes, re-running fastLinkJS should re-link: | ||
> set scalaJSLinkerConfig ~= (_.withOptimizer(false)) | ||
> fastOptJS | ||
-$ must-mirror target/scala-2.12/change-config-fastopt.js target/scala-2.12/output-1.js | ||
$ newer target/scala-2.12/change-config-fastopt.js target/scala-2.12/output-1.js | ||
$ copy-file target/scala-2.12/change-config-fastopt.js target/scala-2.12/output-2.js | ||
> fastLinkJS | ||
-$ must-mirror target/scala-2.12/change-config-dev/main.js target/scala-2.12/output-1.js | ||
$ newer target/scala-2.12/change-config-dev/main.js target/scala-2.12/output-1.js | ||
$ copy-file target/scala-2.12/change-config-dev/main.js target/scala-2.12/output-2.js | ||
|
||
# However, this re-linking should not happen more than once: | ||
> fastOptJS | ||
$ must-mirror target/scala-2.12/change-config-fastopt.js target/scala-2.12/output-2.js | ||
-$ newer target/scala-2.12/change-config-fastopt.js target/scala-2.12/output-2.js | ||
> fastLinkJS | ||
$ must-mirror target/scala-2.12/change-config-dev/main.js target/scala-2.12/output-2.js | ||
-$ newer target/scala-2.12/change-config-dev/main.js target/scala-2.12/output-2.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
$ copy-file Data.scala.good Data.scala | ||
> fastOptJS | ||
> fastLinkJS | ||
$ copy-file Data.scala.broken Data.scala | ||
-> fastOptJS | ||
-> fastLinkJS | ||
$ copy-file Data.scala.fixed Data.scala | ||
> fastOptJS | ||
> fastLinkJS |
2 changes: 1 addition & 1 deletion
2
sbt-plugin/src/sbt-test/linker/no-root-dependency-resolution/test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
> my-project/compile:fastOptJS | ||
> my-project/compile:fastLinkJS |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
> fastOptJS | ||
> fastLinkJS |