-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
20 additions
and
25 deletions.
There are no files selected for viewing
37 changes: 17 additions & 20 deletions
37
plugin/src/sbt-test/sbt-native-image/agent-test/build.sbt
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,21 +1,18 @@ | ||
lazy val example = project | ||
.settings( | ||
scalaVersion := "2.12.18", | ||
Compile / mainClass := Some("example.Hello6"), | ||
nativeImageTestOptions ++= Seq( | ||
s"-H:ReflectionConfigurationFiles=${target.value / "native-image-configs" / "reflect-config.json"}", | ||
"--initialize-at-build-time=scala.collection.immutable.VM", | ||
), | ||
Test / mainClass := Some("org.scalatest.tools.Runner"), | ||
nativeImageTestRunOptions ++= Seq("-o", "-R", (Test / classDirectory).value.absolutePath), | ||
nativeImageCommand := List( | ||
sys.env.getOrElse( | ||
"NATIVE_IMAGE_COMMAND", | ||
"missing environment variable 'NATIVE_IMAGE_COMMAND'. " + | ||
"To fix this problem, manually install GraalVM native-image and update the environment " + | ||
"variable to point to the absolute path of this binary." | ||
) | ||
), | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.16" % Test | ||
scalaVersion := "2.12.18" | ||
Compile / mainClass := Some("example.Hello6") | ||
nativeImageTestOptions ++= Seq( | ||
s"-H:ReflectionConfigurationFiles=${target.value / "native-image-configs" / "reflect-config.json"}", | ||
"--initialize-at-build-time=scala.collection.immutable.VM", | ||
) | ||
Test / mainClass := Some("org.scalatest.tools.Runner") | ||
nativeImageTestRunOptions ++= Seq("-o", "-R", (Test / classDirectory).value.absolutePath) | ||
nativeImageCommand := List( | ||
sys.env.getOrElse( | ||
"NATIVE_IMAGE_COMMAND", | ||
"missing environment variable 'NATIVE_IMAGE_COMMAND'. " + | ||
"To fix this problem, manually install GraalVM native-image and update the environment " + | ||
"variable to point to the absolute path of this binary." | ||
) | ||
.enablePlugins(NativeImagePlugin) | ||
) | ||
libraryDependencies += "org.scalatest" %% "scalatest" % "3.2.16" % Test | ||
enablePlugins(NativeImagePlugin) |
File renamed without changes.
File renamed without changes.
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 @@ | ||
> example/nativeImageTestRunAgent | ||
> nativeImageTestRunAgent | ||
$ delete hello6.obtained | ||
> example/nativeImageTest | ||
> nativeImageTest | ||
$ absent hello6.obtained | ||
> example/nativeImageTestRun | ||
> nativeImageTestRun | ||
$ must-mirror hello6.expected hello6.obtained |
1 change: 0 additions & 1 deletion
1
plugin/src/sbt-test/sbt-native-image/cross-build-test/project/build.properties
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
plugin/src/sbt-test/sbt-native-image/cross-build/project/build.properties
This file was deleted.
Oops, something went wrong.