Skip to content

Commit

Permalink
Try fix scripted tests
Browse files Browse the repository at this point in the history
  • Loading branch information
guizmaii committed Jul 16, 2023
1 parent 4ba6939 commit 31b34e0
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 24 deletions.
37 changes: 17 additions & 20 deletions plugin/src/sbt-test/sbt-native-image/agent-test/build.sbt
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)
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
lazy val example = project
.settings(
crossScalaVersions := List(
"2.11.10",
"2.11.12",
"2.12.10",
"2.12.18",
"2.13.1",
Expand Down

This file was deleted.

2 changes: 1 addition & 1 deletion plugin/src/sbt-test/sbt-native-image/cross-build/build.sbt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
enablePlugins(NativeImagePlugin)
nativeImageOptions += "--no-fallback"
crossScalaVersions := List(
"2.11.10",
"2.11.12",
"2.12.10",
"2.12.18",
"2.13.1",
Expand Down

This file was deleted.

0 comments on commit 31b34e0

Please sign in to comment.