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)