[K/N] Mention test_compile_only in HACKING.md

This commit is contained in:
Sergey Bogolepov
2022-02-08 12:10:43 +03:00
committed by Space
parent 072acf688e
commit f7cc23a13b
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
@@ -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)