[MPP] Remove mingwx86 from CommonizerIT.commonizeMultipleCInteropsWithTests
^KT-58822
This commit is contained in:
committed by
Space Team
parent
89c8392255
commit
e39d9c2c35
+34
-61
@@ -425,9 +425,7 @@ open class CommonizerIT : BaseGradleIT() {
|
|||||||
private fun `test multiple cinterops with test source sets and compilations`(testSourceSetsDependingOnMain: Boolean) {
|
private fun `test multiple cinterops with test source sets and compilations`(testSourceSetsDependingOnMain: Boolean) {
|
||||||
with(Project("commonizeMultipleCInteropsWithTests", minLogLevel = INFO)) {
|
with(Project("commonizeMultipleCInteropsWithTests", minLogLevel = INFO)) {
|
||||||
|
|
||||||
val isUnix = HostManager.hostIsMac || HostManager.hostIsLinux
|
|
||||||
val isMac = HostManager.hostIsMac
|
val isMac = HostManager.hostIsMac
|
||||||
val isWindows = HostManager.hostIsMingw
|
|
||||||
|
|
||||||
fun CompiledProject.assertTestSourceSetsDependingOnMainParameter() {
|
fun CompiledProject.assertTestSourceSetsDependingOnMainParameter() {
|
||||||
val message = "testSourceSetsDependingOnMain is set"
|
val message = "testSourceSetsDependingOnMain is set"
|
||||||
@@ -447,44 +445,42 @@ open class CommonizerIT : BaseGradleIT() {
|
|||||||
getCommonizerDependencies("nativeMain").withoutNativeDistributionDependencies().apply {
|
getCommonizerDependencies("nativeMain").withoutNativeDistributionDependencies().apply {
|
||||||
assertDependencyFilesMatches(".*nativeHelper")
|
assertDependencyFilesMatches(".*nativeHelper")
|
||||||
assertTargetOnAllDependencies(
|
assertTargetOnAllDependencies(
|
||||||
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64, MINGW_X86)
|
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
getCommonizerDependencies("nativeTest").withoutNativeDistributionDependencies().apply {
|
getCommonizerDependencies("nativeTest").withoutNativeDistributionDependencies().apply {
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*nativeTestHelper")
|
assertDependencyFilesMatches(".*nativeHelper", ".*nativeTestHelper")
|
||||||
assertTargetOnAllDependencies(
|
assertTargetOnAllDependencies(
|
||||||
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64, MINGW_X86)
|
CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64, MINGW_X64)
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUnix) {
|
getCommonizerDependencies("unixMain").withoutNativeDistributionDependencies().apply {
|
||||||
getCommonizerDependencies("unixMain").withoutNativeDistributionDependencies().apply {
|
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper")
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper")
|
assertTargetOnAllDependencies(CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64))
|
||||||
assertTargetOnAllDependencies(CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCommonizerDependencies("unixTest").withoutNativeDistributionDependencies().apply {
|
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper", ".*nativeTestHelper")
|
|
||||||
assertTargetOnAllDependencies(CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCommonizerDependencies("linuxMain").withoutNativeDistributionDependencies().apply {
|
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper")
|
|
||||||
assertTargetOnAllDependencies(CommonizerTarget(LINUX_X64, LINUX_ARM64))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCommonizerDependencies("linuxTest").withoutNativeDistributionDependencies().apply {
|
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper", ".*nativeTestHelper")
|
|
||||||
assertTargetOnAllDependencies(CommonizerTarget(LINUX_X64, LINUX_ARM64))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCommonizerDependencies("linuxX64Main").assertEmpty()
|
|
||||||
getCommonizerDependencies("linuxArm64Main").assertEmpty()
|
|
||||||
getCommonizerDependencies("linuxX64Test").assertEmpty()
|
|
||||||
getCommonizerDependencies("linuxArm64Test").assertEmpty()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getCommonizerDependencies("unixTest").withoutNativeDistributionDependencies().apply {
|
||||||
|
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper", ".*nativeTestHelper")
|
||||||
|
assertTargetOnAllDependencies(CommonizerTarget(IOS_X64, IOS_ARM64, LINUX_X64, LINUX_ARM64, MACOS_X64))
|
||||||
|
}
|
||||||
|
|
||||||
|
getCommonizerDependencies("linuxMain").withoutNativeDistributionDependencies().apply {
|
||||||
|
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper")
|
||||||
|
assertTargetOnAllDependencies(CommonizerTarget(LINUX_X64, LINUX_ARM64))
|
||||||
|
}
|
||||||
|
|
||||||
|
getCommonizerDependencies("linuxTest").withoutNativeDistributionDependencies().apply {
|
||||||
|
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper", ".*nativeTestHelper")
|
||||||
|
assertTargetOnAllDependencies(CommonizerTarget(LINUX_X64, LINUX_ARM64))
|
||||||
|
}
|
||||||
|
|
||||||
|
getCommonizerDependencies("linuxX64Main").assertEmpty()
|
||||||
|
getCommonizerDependencies("linuxArm64Main").assertEmpty()
|
||||||
|
getCommonizerDependencies("linuxX64Test").assertEmpty()
|
||||||
|
getCommonizerDependencies("linuxArm64Test").assertEmpty()
|
||||||
|
|
||||||
if (isMac) {
|
if (isMac) {
|
||||||
getCommonizerDependencies("appleMain").withoutNativeDistributionDependencies().apply {
|
getCommonizerDependencies("appleMain").withoutNativeDistributionDependencies().apply {
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper", ".*appleHelper")
|
assertDependencyFilesMatches(".*nativeHelper", ".*unixHelper", ".*appleHelper")
|
||||||
@@ -516,22 +512,8 @@ open class CommonizerIT : BaseGradleIT() {
|
|||||||
getCommonizerDependencies("iosArm64Test").assertEmpty()
|
getCommonizerDependencies("iosArm64Test").assertEmpty()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWindows) {
|
getCommonizerDependencies("windowsX64Main").assertEmpty()
|
||||||
getCommonizerDependencies("windowsMain").withoutNativeDistributionDependencies().apply {
|
getCommonizerDependencies("windowsX64Test").assertEmpty()
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*windowsHelper")
|
|
||||||
assertTargetOnAllDependencies(CommonizerTarget(MINGW_X86, MINGW_X64))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCommonizerDependencies("windowsTest").withoutNativeDistributionDependencies().apply {
|
|
||||||
assertDependencyFilesMatches(".*nativeHelper", ".*windowsHelper", ".*nativeTestHelper")
|
|
||||||
assertTargetOnAllDependencies(CommonizerTarget(MINGW_X86, MINGW_X64))
|
|
||||||
}
|
|
||||||
|
|
||||||
getCommonizerDependencies("windowsX64Main").assertEmpty()
|
|
||||||
getCommonizerDependencies("windowsX64Test").assertEmpty()
|
|
||||||
getCommonizerDependencies("windowsX86Main").assertEmpty()
|
|
||||||
getCommonizerDependencies("windowsX86Test").assertEmpty()
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
build(":assemble", options = testSourceSetsDependingOnMainParameterOption) {
|
build(":assemble", options = testSourceSetsDependingOnMainParameterOption) {
|
||||||
@@ -547,16 +529,14 @@ open class CommonizerIT : BaseGradleIT() {
|
|||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isUnix) {
|
build(":compileUnixMainKotlinMetadata", options = testSourceSetsDependingOnMainParameterOption) {
|
||||||
build(":compileUnixMainKotlinMetadata", options = testSourceSetsDependingOnMainParameterOption) {
|
assertTestSourceSetsDependingOnMainParameter()
|
||||||
assertTestSourceSetsDependingOnMainParameter()
|
assertSuccessful()
|
||||||
assertSuccessful()
|
}
|
||||||
}
|
|
||||||
|
|
||||||
build(":compileLinuxMainKotlinMetadata", options = testSourceSetsDependingOnMainParameterOption) {
|
build(":compileLinuxMainKotlinMetadata", options = testSourceSetsDependingOnMainParameterOption) {
|
||||||
assertTestSourceSetsDependingOnMainParameter()
|
assertTestSourceSetsDependingOnMainParameter()
|
||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isMac) {
|
if (isMac) {
|
||||||
@@ -570,13 +550,6 @@ open class CommonizerIT : BaseGradleIT() {
|
|||||||
assertSuccessful()
|
assertSuccessful()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isWindows) {
|
|
||||||
build(":compileWindowsMainKotlinMetadata", options = testSourceSetsDependingOnMainParameterOption) {
|
|
||||||
assertTestSourceSetsDependingOnMainParameter()
|
|
||||||
assertSuccessful()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+2
-15
@@ -31,8 +31,6 @@ kotlin {
|
|||||||
ios()
|
ios()
|
||||||
|
|
||||||
mingwX64("windowsX64")
|
mingwX64("windowsX64")
|
||||||
@Suppress("DEPRECATION_ERROR")
|
|
||||||
mingwX86("windowsX86")
|
|
||||||
|
|
||||||
val commonMain by sourceSets.getting
|
val commonMain by sourceSets.getting
|
||||||
val commonTest by sourceSets.getting
|
val commonTest by sourceSets.getting
|
||||||
@@ -53,12 +51,8 @@ kotlin {
|
|||||||
val macosTest by sourceSets.getting
|
val macosTest by sourceSets.getting
|
||||||
val iosMain by sourceSets.getting
|
val iosMain by sourceSets.getting
|
||||||
val iosTest by sourceSets.getting
|
val iosTest by sourceSets.getting
|
||||||
val windowsMain by sourceSets.creating
|
|
||||||
val windowsTest by sourceSets.creating
|
|
||||||
val windowsX64Main by sourceSets.getting
|
val windowsX64Main by sourceSets.getting
|
||||||
val windowsX64Test by sourceSets.getting
|
val windowsX64Test by sourceSets.getting
|
||||||
val windowsX86Main by sourceSets.getting
|
|
||||||
val windowsX86Test by sourceSets.getting
|
|
||||||
|
|
||||||
commonMain {
|
commonMain {
|
||||||
-jvmMain
|
-jvmMain
|
||||||
@@ -73,10 +67,7 @@ kotlin {
|
|||||||
-linuxX64Main
|
-linuxX64Main
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-windowsMain {
|
-windowsX64Main
|
||||||
-windowsX64Main
|
|
||||||
-windowsX86Main
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,10 +83,7 @@ kotlin {
|
|||||||
-linuxX64Test
|
-linuxX64Test
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
-windowsTest {
|
-windowsX64Test
|
||||||
-windowsX64Test
|
|
||||||
-windowsX86Test
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -105,7 +93,6 @@ kotlin {
|
|||||||
unixTest.dependsOn(unixMain)
|
unixTest.dependsOn(unixMain)
|
||||||
appleTest.dependsOn(appleMain)
|
appleTest.dependsOn(appleMain)
|
||||||
linuxTest.dependsOn(linuxMain)
|
linuxTest.dependsOn(linuxMain)
|
||||||
windowsTest.dependsOn(windowsMain)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
targets.withType<KotlinNativeTarget>().forEach { target ->
|
targets.withType<KotlinNativeTarget>().forEach { target ->
|
||||||
|
|||||||
Reference in New Issue
Block a user