Skip to content

Commit

Permalink
Add a test for sbt#1284
Browse files Browse the repository at this point in the history
  • Loading branch information
nigredo-tori committed Nov 22, 2019
1 parent e93c9f2 commit ab3cd43
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions src/sbt-test/jlink/test-jlink-misc/build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import scala.sys.process.Process
import com.typesafe.sbt.packager.Compat._

val runChecks = taskKey[Unit]("Run checks for a specific issue")
val runFailingChecks = taskKey[Unit]("Run checks for a specific issue, expecting them to fail")

// Exclude Scala by default to simplify the test.
autoScalaLibrary in ThisBuild := false
Expand Down Expand Up @@ -80,3 +81,11 @@ val issue1266 = project

runChecks := jlinkBuildImage.value
)

// Should fail for invalid jlink inputs
val issue1284 = project
.enablePlugins(JlinkPlugin)
.settings(
jlinkModules := List("no-such-module"),
runFailingChecks := jlinkBuildImage.value
)
3 changes: 2 additions & 1 deletion src/sbt-test/jlink/test-jlink-misc/test
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
> issue1247BadAutoModuleName/runChecks
> issue1247ExternalModule/runChecks
> issue1247JakartaJavaModules/runChecks
> issue1266/runChecks
> issue1266/runChecks
-> issue1284/runFailingChecks

0 comments on commit ab3cd43

Please sign in to comment.