kargashinsky/mute-unresolved-target-tests-mac
[Gradle][Tests] Fix CommonNativeIT testData [Gradle][Tests] Mute 2 native tests on Mac host - Since 1.7.20 kotlinVersion Mac host can compile all native targets, so tests with "unsupported targets" on Mac are obsolete. Merge-request: KT-MR-7133 Merged-by: Pavel Kargashinsky <Pavel.Kargashinsky@jetbrains.com>
This commit is contained in:
committed by
Space
parent
dfbdafeb3c
commit
221043a74d
+3
@@ -24,6 +24,7 @@ import org.jetbrains.kotlin.konan.target.KonanTarget
|
|||||||
import org.jetbrains.kotlin.test.RunnerWithMuteInDatabase
|
import org.jetbrains.kotlin.test.RunnerWithMuteInDatabase
|
||||||
import org.junit.After
|
import org.junit.After
|
||||||
import org.junit.AfterClass
|
import org.junit.AfterClass
|
||||||
|
import org.junit.Assume
|
||||||
import org.junit.Before
|
import org.junit.Before
|
||||||
import org.junit.runner.RunWith
|
import org.junit.runner.RunWith
|
||||||
import java.io.File
|
import java.io.File
|
||||||
@@ -243,6 +244,8 @@ abstract class BaseGradleIT {
|
|||||||
"Could not stop some daemons ${(DaemonRegistry.activeDaemons).joinToString()}"
|
"Could not stop some daemons ${(DaemonRegistry.activeDaemons).joinToString()}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
fun hostHaveUnsupportedTarget() = Assume.assumeFalse(HostManager.hostIsMac)
|
||||||
}
|
}
|
||||||
|
|
||||||
// the second parameter is for using with ToolingAPI, that do not like --daemon/--no-daemon options at all
|
// the second parameter is for using with ToolingAPI, that do not like --daemon/--no-daemon options at all
|
||||||
|
|||||||
+1
@@ -985,6 +985,7 @@ class GeneralNativeIT : BaseGradleIT() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testIgnoreDisabledNativeTargets() = with(Project("sample-lib", directoryPrefix = "new-mpp-lib-and-app")) {
|
fun testIgnoreDisabledNativeTargets() = with(Project("sample-lib", directoryPrefix = "new-mpp-lib-and-app")) {
|
||||||
|
hostHaveUnsupportedTarget()
|
||||||
build {
|
build {
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
assertEquals(1, output.lines().count { DISABLED_NATIVE_TARGETS_REPORTER_WARNING_PREFIX in it })
|
assertEquals(1, output.lines().count { DISABLED_NATIVE_TARGETS_REPORTER_WARNING_PREFIX in it })
|
||||||
|
|||||||
+2
-6
@@ -174,14 +174,10 @@ class NativePlatformLibsIT : BaseGradleIT() {
|
|||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun testNoGenerationForUnsupportedHost() {
|
fun testNoGenerationForUnsupportedHost() {
|
||||||
|
hostHaveUnsupportedTarget()
|
||||||
deleteInstalledCompilers()
|
deleteInstalledCompilers()
|
||||||
|
|
||||||
val unsupportedTarget = when {
|
platformLibrariesProject(KonanTarget.IOS_X64.presetName).buildWithLightDist("assemble") {
|
||||||
HostManager.hostIsMac -> KonanTarget.LINUX_MIPSEL32
|
|
||||||
else -> KonanTarget.IOS_X64
|
|
||||||
}
|
|
||||||
|
|
||||||
platformLibrariesProject(unsupportedTarget.presetName).buildWithLightDist("assemble") {
|
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
assertNotContains("Generate platform libraries for ")
|
assertNotContains("Generate platform libraries for ")
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.multiplatform")
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
kotlin("multiplatform").apply(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.multiplatform")
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.multiplatform")
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
kotlin("multiplatform").apply(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.multiplatform")
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.multiplatform")
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
|
|||||||
+8
@@ -0,0 +1,8 @@
|
|||||||
|
plugins {
|
||||||
|
kotlin("multiplatform").apply(false)
|
||||||
|
}
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenLocal()
|
||||||
|
mavenCentral()
|
||||||
|
}
|
||||||
+1
-1
@@ -1,5 +1,5 @@
|
|||||||
plugins {
|
plugins {
|
||||||
id("org.jetbrains.kotlin.multiplatform").version("<pluginMarkerVersion>")
|
id("org.jetbrains.kotlin.multiplatform")
|
||||||
id("maven-publish")
|
id("maven-publish")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user