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

This reverts commit 8518c3f54f.
This commit is contained in:
Alexander Shabalin
2024-02-23 13:12:59 +01:00
committed by Space Team
parent 60c74ab91a
commit 9832edddab
4 changed files with 52 additions and 46 deletions
@@ -1292,26 +1292,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
*/
@@ -1,9 +0,0 @@
/*
* Copyright 2010-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license
* that can be found in the LICENSE file.
*/
// TODO: remove kotlin_native.io once overrides are in place.
fun main(args : Array<String>) {
println("Hello, world!")
}
@@ -1 +0,0 @@
Hello, world!