[K/N][tests] Add global TEST_KIND override ^KT-61259

This commit is contained in:
Alexander Shabalin
2023-11-07 14:56:12 +01:00
committed by Space Team
parent e75b29032f
commit 97a86e0ee3
7 changed files with 17 additions and 28 deletions
@@ -16,7 +16,8 @@ private enum class TestProperty(shortName: String) {
CUSTOM_KLIBS("customKlibs"),
TEST_TARGET("target"),
TEST_MODE("mode"),
FORCE_STANDALONE("forceStandalone"),
TEST_KIND("testKind"),
FORCE_STANDALONE("forceStandalone"), // This is not passed directly into the test infra but transformed into TEST_KIND.
COMPILE_ONLY("compileOnly"),
OPTIMIZATION_MODE("optimizationMode"),
USE_THREAD_STATE_CHECKER("useThreadStateChecker"),
@@ -178,10 +179,13 @@ fun Project.nativeTest(
lazyClassPath { customTestDependencies.flatMapTo(this) { it.files } }
}
compute(TEST_KIND) {
readFromGradle(FORCE_STANDALONE)?.let { "STANDALONE" }
}
// Pass Gradle properties as JVM properties so test process can read them.
compute(TEST_TARGET)
compute(TEST_MODE)
compute(FORCE_STANDALONE)
compute(COMPILE_ONLY)
compute(OPTIMIZATION_MODE)
compute(USE_THREAD_STATE_CHECKER)