[K/N][test] Update test to use release versions of builds

Test uses dev and eap builds that could be removed one day.
This commit is contained in:
Pavel Punegov
2022-10-26 16:24:27 +02:00
committed by Space Team
parent 2d8035ba9f
commit 877f83b9d9
@@ -951,20 +951,20 @@ class GeneralNativeIT : BaseGradleIT() {
assertNotContains(NO_NATIVE_STDLIB_PROPERTY_WARNING) assertNotContains(NO_NATIVE_STDLIB_PROPERTY_WARNING)
} }
build("tasks", "-Pkotlin.native.version=1.5.20-dev-5613") { build("tasks", "-Pkotlin.native.version=1.5.20") {
assertSuccessful() assertSuccessful()
assertContainsRegex( assertContainsRegex(
"Kotlin/Native distribution: .*kotlin-native-prebuilt-(macos|linux|windows)-1\\.5\\.20-dev-5613" "Kotlin/Native distribution: .*kotlin-native-prebuilt-(macos|linux|windows)-1\\.5\\.20"
.toRegex() .toRegex()
) )
assertNotContains("Project property 'org.jetbrains.kotlin.native.version' is deprecated") assertNotContains("Project property 'org.jetbrains.kotlin.native.version' is deprecated")
} }
// Deprecated property // Deprecated property
build("tasks", "-Porg.jetbrains.kotlin.native.version=1.5.20-dev-5613") { build("tasks", "-Porg.jetbrains.kotlin.native.version=1.5.20") {
assertSuccessful() assertSuccessful()
assertContainsRegex( assertContainsRegex(
"Kotlin/Native distribution: .*kotlin-native-prebuilt-(macos|linux|windows)-1\\.5\\.20-dev-5613" "Kotlin/Native distribution: .*kotlin-native-prebuilt-(macos|linux|windows)-1\\.5\\.20"
.toRegex() .toRegex()
) )
assertContains("Project property 'org.jetbrains.kotlin.native.version' is deprecated") assertContains("Project property 'org.jetbrains.kotlin.native.version' is deprecated")
@@ -975,7 +975,7 @@ class GeneralNativeIT : BaseGradleIT() {
// MPP plugin uses this API to download K/N if Gradle version is >= 5.0. // MPP plugin uses this API to download K/N if Gradle version is >= 5.0.
// Check this too (see KT-30258). // Check this too (see KT-30258).
with(Project("native-libraries")) { with(Project("native-libraries")) {
build("tasks", "-Pkotlin.native.version=1.3.50-eap-11606") { build("tasks", "-Pkotlin.native.version=1.3.50") {
assertSuccessful() assertSuccessful()
assertTrue(output.contains("Kotlin/Native distribution: ")) assertTrue(output.contains("Kotlin/Native distribution: "))
assertFalse(output.contains("Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.")) assertFalse(output.contains("Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0."))