[K/N][tests] Add :nativeCompilerUnitTest and :nativeCompilerTest ^KT-65392
- :nativeCompilerUnitTest are unit tests on K/N compiler. - :nativeCompilerTest are tests using K/N compiler and should be run in many different compilation modes that K/N supports.
This commit is contained in:
committed by
Space Team
parent
038fe15dd4
commit
d92eecb985
+18
-2
@@ -791,8 +791,25 @@ tasks {
|
||||
dependsOn(":wasm:wasm.tests:testFir")
|
||||
}
|
||||
|
||||
// These tests run Native compiler and will be run in many different compilation modes that the compiler supports:
|
||||
// - different optimization modes
|
||||
// - different cache policies
|
||||
// - different GCs
|
||||
// ...
|
||||
register("nativeCompilerTest") {
|
||||
dependsOn(":native:kotlin-native-utils:test")
|
||||
dependsOn(":native:native.tests:test")
|
||||
dependsOn(":native:objcexport-header-generator:check")
|
||||
dependsOn(":kotlin-atomicfu-compiler-plugin:nativeTest")
|
||||
}
|
||||
|
||||
// These are unit tests of Native compiler
|
||||
register("nativeCompilerUnitTest") {
|
||||
dependsOn(":native:kotlin-native-utils:check")
|
||||
if (kotlinBuildProperties.isKotlinNativeEnabled) {
|
||||
dependsOn(":kotlin-native:Interop:Indexer:check")
|
||||
dependsOn(":kotlin-native:Interop:StubGenerator:check")
|
||||
dependsOn(":kotlin-native:backend.native:check")
|
||||
}
|
||||
}
|
||||
|
||||
register("firCompilerTest") {
|
||||
@@ -847,7 +864,6 @@ tasks {
|
||||
dependsOn("gradlePluginTest")
|
||||
dependsOn("toolsTest")
|
||||
dependsOn("examplesTest")
|
||||
dependsOn("nativeCompilerTest")
|
||||
dependsOn("incrementalCompilationTest")
|
||||
dependsOn("scriptingTest")
|
||||
dependsOn("jvmCompilerIntegrationTest")
|
||||
|
||||
@@ -180,11 +180,10 @@ tasks.named("run") {
|
||||
dependsOn(tasks.withType(FileCheckTest).matching { it.enabled })
|
||||
// Add regular gradle test tasks
|
||||
dependsOn(tasks.withType(Test).matching { it.enabled })
|
||||
dependsOn(":kotlin-native:Interop:Indexer:check")
|
||||
dependsOn(":kotlin-native:Interop:StubGenerator:check")
|
||||
dependsOn(":native:kotlin-native-utils:check")
|
||||
// TODO(KTI-1571): This task should be run by Compiler Unit Tests (Native) configuration
|
||||
dependsOn(":nativeCompilerUnitTest")
|
||||
// TODO(KTI-1571): This should be run by Compiler Tests (Native) configuration
|
||||
dependsOn(":native:objcexport-header-generator:check")
|
||||
dependsOn(":kotlin-native:backend.native:check")
|
||||
}
|
||||
|
||||
// Was a subset of tests.
|
||||
|
||||
Reference in New Issue
Block a user