From 7702374dbd9a14113701dd28196c139519be9a34 Mon Sep 17 00:00:00 2001 From: Alexander Shabalin Date: Mon, 29 Jan 2024 19:31:49 +0100 Subject: [PATCH] [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; --- .../atomicfu/atomicfu-compiler/build.gradle.kts | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/plugins/atomicfu/atomicfu-compiler/build.gradle.kts b/plugins/atomicfu/atomicfu-compiler/build.gradle.kts index 5f5ed1eb5fb..7159e63a435 100644 --- a/plugins/atomicfu/atomicfu-compiler/build.gradle.kts +++ b/plugins/atomicfu/atomicfu-compiler/build.gradle.kts @@ -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) + } +} \ No newline at end of file