From f7cc23a13b98cfd0b89dbd132f822334a2fb6cc5 Mon Sep 17 00:00:00 2001 From: Sergey Bogolepov Date: Tue, 8 Feb 2022 12:10:43 +0300 Subject: [PATCH] [K/N] Mention test_compile_only in HACKING.md --- kotlin-native/HACKING.md | 3 +++ .../build-tools/src/main/kotlin/org/jetbrains/kotlin/Utils.kt | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/kotlin-native/HACKING.md b/kotlin-native/HACKING.md index d91353a9209..f65f60c4bf6 100644 --- a/kotlin-native/HACKING.md +++ b/kotlin-native/HACKING.md @@ -98,6 +98,9 @@ and then a final native binary is produced from this klibrary using the -Xinclud ./gradlew -Ptest_two_stage :kotlin-native:backend.native:tests:array0 * **-Ptest_with_cache_kind=static|dynamic** enables using caches during testing. + +* **-Ptest_compile_only** allows one to only compile tests, without actually running them. It is useful for testing compilation pipeline in +case of targets that are tricky to execute tests on. ### Runtime unit tests diff --git a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/Utils.kt b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/Utils.kt index 78c264f233b..3d0915ac13a 100644 --- a/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/Utils.kt +++ b/kotlin-native/build-tools/src/main/kotlin/org/jetbrains/kotlin/Utils.kt @@ -87,7 +87,7 @@ val Project.cacheRedirectorEnabled get() = findProperty("cacheRedirectorEnabled")?.toString()?.toBoolean() ?: false val Project.compileOnlyTests: Boolean - get() = hasProperty("compile-only-tests") + get() = hasProperty("test_compile_only") fun Project.redirectIfEnabled(url: String):String = if (cacheRedirectorEnabled) { val base = URL(url)