Skip to content

Commit

Permalink
Added bsp link test for native 0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianAN committed Dec 19, 2024
1 parent 320647a commit 87ff422
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion frontend/src/test/scala/bloop/bsp/BspLinkSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,24 @@ class BspLinkSpec(
override val protocol: BspProtocol
) extends BspBaseSuite {

test("can link scala-native cross project") {
test("can link scala-native-04 cross project") {
TestUtil.withinWorkspace { workspace =>
val logger = new RecordingLogger(ansiCodesSupported = false)
loadBspBuildFromResources(s"cross-test-build-scala-native-0.4", workspace, logger) { build =>
val project: TestProject = build.projectFor("test-projectNative")
val compiledState =
build.state.compile(project, arguments = Some(List("--link")))
assertEquals(compiledState.status, ExitStatus.Ok)
assert(
logger
.getMessagesAt(level = Some("info"))
.find(_.contains("Generated native binary"))
.size == 1
)
}
}
}
test("can link scala-native-05 cross project") {
TestUtil.withinWorkspace { workspace =>
val logger = new RecordingLogger(ansiCodesSupported = false)
loadBspBuildFromResources(s"cross-test-build-scala-native-0.5", workspace, logger) { build =>
Expand Down

0 comments on commit 87ff422

Please sign in to comment.