[MPP] Remove obsolete targets from MppCInteropDependencyTransformationIT.ComplexProject
^KT-58822
This commit is contained in:
committed by
Space Team
parent
da1fde2477
commit
76eef2adb1
+8
-28
@@ -25,10 +25,6 @@ import org.junit.Test
|
||||
*/
|
||||
abstract class MppCInteropDependencyTransformationIT : BaseGradleIT() {
|
||||
|
||||
enum class DependencyMode {
|
||||
Project, Repository
|
||||
}
|
||||
|
||||
override fun defaultBuildOptions(): BuildOptions = super.defaultBuildOptions().run {
|
||||
copy(
|
||||
forceOutputToStdout = true,
|
||||
@@ -85,8 +81,8 @@ abstract class MppCInteropDependencyTransformationIT : BaseGradleIT() {
|
||||
}
|
||||
|
||||
if (HostManager.hostIsMingw || HostManager.hostIsMac) {
|
||||
assertTasksExecuted(":p2:compileWindowsMainKotlinMetadata")
|
||||
assertTasksExecuted(":p3:compileWindowsMainKotlinMetadata")
|
||||
assertTasksExecuted(":p2:compileKotlinWindowsX64")
|
||||
assertTasksExecuted(":p3:compileKotlinWindowsX64")
|
||||
}
|
||||
|
||||
/* Assert p2 & p3 transformed cinterop dependencies */
|
||||
@@ -143,7 +139,7 @@ abstract class MppCInteropDependencyTransformationIT : BaseGradleIT() {
|
||||
getCommonizerDependencies(sourceSetName).withoutNativeDistributionDependencies()
|
||||
.assertDependencyFilesMatches(".*cinterop-simple.*", ".*cinterop-withPosix.*")
|
||||
.assertTargetOnAllDependencies(
|
||||
CommonizerTarget(LINUX_ARM64, LINUX_X64, IOS_ARM64, IOS_X64, MACOS_X64, MINGW_X64, MINGW_X86)
|
||||
CommonizerTarget(LINUX_ARM64, LINUX_X64, IOS_ARM64, IOS_X64, MACOS_X64, MINGW_X64)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -167,18 +163,10 @@ abstract class MppCInteropDependencyTransformationIT : BaseGradleIT() {
|
||||
}
|
||||
}
|
||||
|
||||
if (HostManager.hostIsMingw || HostManager.hostIsMac) {
|
||||
listOf("windowsMain", "windowsTest").forEach { sourceSetName ->
|
||||
getCommonizerDependencies(sourceSetName).withoutNativeDistributionDependencies()
|
||||
.assertDependencyFilesMatches(".*cinterop-simple.*", ".*cinterop-withPosix.*")
|
||||
.assertTargetOnAllDependencies(CommonizerTarget(MINGW_X64, MINGW_X86))
|
||||
}
|
||||
|
||||
listOf("linuxMain", "linuxTest").forEach { sourceSetName ->
|
||||
getCommonizerDependencies(sourceSetName).withoutNativeDistributionDependencies()
|
||||
.assertDependencyFilesMatches(".*cinterop-simple.*", ".*cinterop-withPosix.*")
|
||||
.assertTargetOnAllDependencies(CommonizerTarget(LINUX_ARM64, LINUX_X64))
|
||||
}
|
||||
listOf("linuxMain", "linuxTest").forEach { sourceSetName ->
|
||||
getCommonizerDependencies(sourceSetName).withoutNativeDistributionDependencies()
|
||||
.assertDependencyFilesMatches(".*cinterop-simple.*", ".*cinterop-withPosix.*")
|
||||
.assertTargetOnAllDependencies(CommonizerTarget(LINUX_ARM64, LINUX_X64))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +179,7 @@ abstract class MppCInteropDependencyTransformationIT : BaseGradleIT() {
|
||||
getCommonizerDependencies(sourceSetName).withoutNativeDistributionDependencies()
|
||||
.assertDependencyFilesMatches(".*cinterop-simple.*", ".*cinterop-withPosix.*")
|
||||
.assertTargetOnAllDependencies(
|
||||
CommonizerTarget(LINUX_ARM64, LINUX_X64, IOS_ARM64, IOS_X64, MACOS_X64, MINGW_X64, MINGW_X86)
|
||||
CommonizerTarget(LINUX_ARM64, LINUX_X64, IOS_ARM64, IOS_X64, MACOS_X64, MINGW_X64)
|
||||
)
|
||||
}
|
||||
|
||||
@@ -208,14 +196,6 @@ abstract class MppCInteropDependencyTransformationIT : BaseGradleIT() {
|
||||
.assertTargetOnAllDependencies(CommonizerTarget(IOS_ARM64, IOS_X64))
|
||||
}
|
||||
}
|
||||
|
||||
if (HostManager.hostIsMingw || HostManager.hostIsMac) {
|
||||
listOf("windowsMain", "windowsTest").forEach { sourceSetName ->
|
||||
getCommonizerDependencies(sourceSetName).withoutNativeDistributionDependencies()
|
||||
.assertDependencyFilesMatches(".*cinterop-simple.*", ".*cinterop-withPosix.*")
|
||||
.assertTargetOnAllDependencies(CommonizerTarget(MINGW_X64, MINGW_X86))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
+2
-8
@@ -37,8 +37,6 @@ kotlin {
|
||||
ios()
|
||||
|
||||
mingwX64("windowsX64")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
mingwX86("windowsX86")
|
||||
|
||||
val commonMain by sourceSets.getting
|
||||
val concurrentMain by sourceSets.creating
|
||||
@@ -52,9 +50,7 @@ kotlin {
|
||||
val appleMain by sourceSets.creating
|
||||
val macosMain by sourceSets.getting
|
||||
val iosMain by sourceSets.getting
|
||||
val windowsMain by sourceSets.creating
|
||||
val windowsX64Main by sourceSets.getting
|
||||
val windowsX86Main by sourceSets.getting
|
||||
|
||||
commonMain {
|
||||
-jsMain
|
||||
@@ -71,10 +67,8 @@ kotlin {
|
||||
-linuxX64Main
|
||||
}
|
||||
}
|
||||
-windowsMain {
|
||||
-windowsX64Main
|
||||
-windowsX86Main
|
||||
}
|
||||
|
||||
-windowsX64Main
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-14
@@ -29,8 +29,6 @@ kotlin {
|
||||
ios()
|
||||
|
||||
mingwX64("windowsX64")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
mingwX86("windowsX86")
|
||||
|
||||
val commonMain by sourceSets.getting
|
||||
val commonTest by sourceSets.getting
|
||||
@@ -51,12 +49,8 @@ kotlin {
|
||||
val macosTest by sourceSets.getting
|
||||
val iosMain by sourceSets.getting
|
||||
val iosTest by sourceSets.getting
|
||||
val windowsMain by sourceSets.creating
|
||||
val windowsTest by sourceSets.creating
|
||||
val windowsX64Main by sourceSets.getting
|
||||
val windowsX64Test by sourceSets.getting
|
||||
val windowsX86Main by sourceSets.getting
|
||||
val windowsX86Test by sourceSets.getting
|
||||
|
||||
commonMain {
|
||||
-jvmMain
|
||||
@@ -71,10 +65,8 @@ kotlin {
|
||||
-linuxX64Main
|
||||
}
|
||||
}
|
||||
-windowsMain {
|
||||
-windowsX64Main
|
||||
-windowsX86Main
|
||||
}
|
||||
|
||||
-windowsX64Main
|
||||
}
|
||||
}
|
||||
|
||||
@@ -90,10 +82,8 @@ kotlin {
|
||||
-linuxX64Test
|
||||
}
|
||||
}
|
||||
-windowsTest {
|
||||
-windowsX64Test
|
||||
-windowsX86Test
|
||||
}
|
||||
|
||||
-windowsX64Test
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+2
-18
@@ -24,8 +24,6 @@ kotlin {
|
||||
linuxX64()
|
||||
ios()
|
||||
mingwX64("windowsX64")
|
||||
@Suppress("DEPRECATION_ERROR")
|
||||
mingwX86("windowsX86")
|
||||
|
||||
val commonMain by sourceSets.getting
|
||||
val commonTest by sourceSets.getting
|
||||
@@ -40,12 +38,8 @@ kotlin {
|
||||
val linuxX64Test by sourceSets.getting
|
||||
val iosMain by sourceSets.getting
|
||||
val iosTest by sourceSets.getting
|
||||
val windowsMain by sourceSets.creating
|
||||
val windowsTest by sourceSets.creating
|
||||
val windowsX64Main by sourceSets.getting
|
||||
val windowsX64Test by sourceSets.getting
|
||||
val windowsX86Main by sourceSets.getting
|
||||
val windowsX86Test by sourceSets.getting
|
||||
|
||||
commonMain {
|
||||
-jvmMain
|
||||
@@ -68,13 +62,8 @@ kotlin {
|
||||
Expected to see p1:nativeMain cinterops
|
||||
*/
|
||||
-windowsAndLinuxMain {
|
||||
-windowsMain
|
||||
-linuxX64Main
|
||||
}
|
||||
|
||||
-windowsMain {
|
||||
-windowsX64Main
|
||||
-windowsX86Main
|
||||
-linuxX64Main
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -87,13 +76,8 @@ kotlin {
|
||||
}
|
||||
|
||||
-windowsAndLinuxTest {
|
||||
-windowsTest
|
||||
-linuxX64Test
|
||||
}
|
||||
|
||||
-windowsTest {
|
||||
-windowsX64Test
|
||||
-windowsX86Test
|
||||
-linuxX64Test
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user