[K/N][tests] In atomicfu make check task run all backends ^KT-65392

- test task will run JVM and JS backend tests; called by CI
- nativeTest will run Native backend tests; called by CI
- check will run all backends tests; called locally;
This commit is contained in:
Alexander Shabalin
2024-01-29 19:31:49 +01:00
committed by Space Team
parent d92eecb985
commit 7702374dbd
@@ -175,12 +175,6 @@ projectTest(jUnitMode = JUnitMode.JUnit5) {
dependsOn(":dist")
dependsOn(atomicfuJsIrRuntimeForTests)
// Depend on the test task that launches Native tests so that it will also run together with tests
// for all other targets if K/N is enabled
if (kotlinBuildProperties.isKotlinNativeEnabled) {
dependsOn(nativeTest)
}
val localAtomicfuJsIrRuntimeForTests: FileCollection = atomicfuJsIrRuntimeForTests
val localAtomicfuJsClasspath: FileCollection = atomicfuJsClasspath
val localAtomicfuJvmClasspath: FileCollection = atomicfuJvmClasspath
@@ -203,3 +197,11 @@ val nativeTest = nativeTest(
customTestDependencies = listOf(atomicfuNativeKlib),
compilerPluginDependencies = listOf(atomicfuCompilerPluginForTests)
)
tasks.named("check") {
// Depend on the test task that launches Native tests so that it will also run together with tests
// for all other targets if K/N is enabled
if (kotlinBuildProperties.isKotlinNativeEnabled) {
dependsOn(nativeTest)
}
}