[K/N][Tests] Migrate test override_konan_properties0 and add testDriverVersion

^KT-61259
This commit is contained in:
Vladimir Sukharev
2024-02-07 23:09:24 +01:00
committed by Space Team
parent 9ef051dbc5
commit fbe8db4b45
4 changed files with 52 additions and 46 deletions
@@ -1695,26 +1695,6 @@ standaloneTest("split_compilation_pipeline") {
useGoldenData = true
}
tasks.register("override_konan_properties0", KonanDriverTest) {
disabled = isAggressiveGC // No need to test with different GC schedulers
def overrides = PlatformInfo.isWindows()
? '-Xoverride-konan-properties="llvmInlineThreshold=76"'
: '-Xoverride-konan-properties=llvmInlineThreshold=76'
flags = [
"-opt",
"-Xverbose-phases=MandatoryBitcodeLLVMPostprocessingPhase",
overrides
]
compilerMessages = true
source = "link/ir_providers/hello.kt"
def messages = "inline_threshold: 76\nhello\n"
outputChecker = { out ->
messages.split("\n")
.collect { line -> out.contains(line) }
.every { it == true }
}
}
/**
* Builds tests into a single binary with TestRunner
*/