Skip to content

Commit

Permalink
wip?
Browse files Browse the repository at this point in the history
  • Loading branch information
whyoleg committed Jan 18, 2025
1 parent 9bf0c60 commit a9aaf1e
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,25 +84,25 @@ class MultiplatformCrossModuleRuntimeTest : AbstractTest() {
buildGradleKts(plugins = listOf("alias(libs.plugins.kotlin.multiplatform)"))
allTargets()
kotlinTest(COMMON_TEST)
prepend(BUILD_GRADLE_KTS) {
// for native tasks
"import org.jetbrains.kotlin.gradle.plugin.mpp.*"
}
append(BUILD_GRADLE_KTS) {
"""
kotlin {
// setup tests running in RELEASE mode
targets.withType<KotlinNativeTarget>().configureEach {
binaries.test(listOf(NativeBuildType.RELEASE))
}
targets.withType<KotlinNativeTargetWithTests<*>>().configureEach {
testRuns.create("releaseTest") {
setExecutionSourceFrom(binaries.getTest(NativeBuildType.RELEASE))
}
}
}
""".trimIndent()
}
// prepend(BUILD_GRADLE_KTS) {
// // for native tasks
// "import org.jetbrains.kotlin.gradle.plugin.mpp.*"
// }
// append(BUILD_GRADLE_KTS) {
// """
// kotlin {
// // setup tests running in RELEASE mode
// targets.withType<KotlinNativeTarget>().configureEach {
// binaries.test(listOf(NativeBuildType.RELEASE))
// }
// targets.withType<KotlinNativeTargetWithTests<*>>().configureEach {
// testRuns.create("releaseTest") {
// setExecutionSourceFrom(binaries.getTest(NativeBuildType.RELEASE))
// }
// }
// }
// """.trimIndent()
// }
append(BUILD_GRADLE_KTS) {
"""
kotlin {
Expand Down
38 changes: 19 additions & 19 deletions sweetspi-tests/src/test/kotlin/runtime/MultiplatformRuntimeTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -16,25 +16,25 @@ class MultiplatformRuntimeTest : AbstractTest() {
withSweetSpi()
allTargets()
kotlinTest(COMMON_TEST)
prepend(BUILD_GRADLE_KTS) {
// for native tasks
"import org.jetbrains.kotlin.gradle.plugin.mpp.*"
}
append(BUILD_GRADLE_KTS) {
"""
kotlin {
// setup tests running in RELEASE mode
targets.withType<KotlinNativeTarget>().configureEach {
binaries.test(listOf(NativeBuildType.RELEASE))
}
targets.withType<KotlinNativeTargetWithTests<*>>().configureEach {
testRuns.create("releaseTest") {
setExecutionSourceFrom(binaries.getTest(NativeBuildType.RELEASE))
}
}
}
""".trimIndent()
}
// prepend(BUILD_GRADLE_KTS) {
// // for native tasks
// "import org.jetbrains.kotlin.gradle.plugin.mpp.*"
// }
// append(BUILD_GRADLE_KTS) {
// """
// kotlin {
// // setup tests running in RELEASE mode
// targets.withType<KotlinNativeTarget>().configureEach {
// binaries.test(listOf(NativeBuildType.RELEASE))
// }
// targets.withType<KotlinNativeTargetWithTests<*>>().configureEach {
// testRuns.create("releaseTest") {
// setExecutionSourceFrom(binaries.getTest(NativeBuildType.RELEASE))
// }
// }
// }
// """.trimIndent()
// }
kotlinSourceFile(
sourceSet = COMMON_MAIN, path = "main.kt",
code = """
Expand Down

0 comments on commit a9aaf1e

Please sign in to comment.