[Gradle] Test commonizeNativeDistribution task is not initialized
^KT-61359 In Progress
This commit is contained in:
committed by
Space Team
parent
e16f03fc49
commit
2111bfae40
+18
-1
@@ -65,6 +65,24 @@ class CommonizerTaskTests {
|
|||||||
subproject.tasks.getByName("commonize").assertDependsOn(rootProjectCommonizeNativeDistributionTask)
|
subproject.tasks.getByName("commonize").assertDependsOn(rootProjectCommonizeNativeDistributionTask)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Test
|
||||||
|
fun `test commonizeNativeDistributionTask is not created eagerly`() {
|
||||||
|
val project = buildProjectWithMPP {
|
||||||
|
tasks.configureEach {
|
||||||
|
if (it.name == "commonizeNativeDistribution") {
|
||||||
|
fail("Task $it was not expected to be created eagerly")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
kotlin {
|
||||||
|
linuxArm64()
|
||||||
|
linuxX64()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
project.evaluate()
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if jvm-ecosystem plugin is applied when commonizer task is applied to the root project.
|
* Check if jvm-ecosystem plugin is applied when commonizer task is applied to the root project.
|
||||||
* Context: https://github.com/gradle/gradle/issues/20145
|
* Context: https://github.com/gradle/gradle/issues/20145
|
||||||
@@ -128,7 +146,6 @@ class CommonizerTaskTests {
|
|||||||
assertNotNull(rootProject.plugins.findPlugin(JVM_ECOSYSTEM_PLUGIN_ID))
|
assertNotNull(rootProject.plugins.findPlugin(JVM_ECOSYSTEM_PLUGIN_ID))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun `test commonizeCInteropTask`() {
|
fun `test commonizeCInteropTask`() {
|
||||||
val commonizeCInteropTaskName = "commonizeCInterop"
|
val commonizeCInteropTaskName = "commonizeCInterop"
|
||||||
|
|||||||
Reference in New Issue
Block a user