[K/N][Tests] Migrate test override_konan_properties0 and add testDriverVersion
^KT-61259
This commit is contained in:
committed by
Space Team
parent
9ef051dbc5
commit
fbe8db4b45
@@ -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
|
||||
*/
|
||||
|
||||
@@ -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!
|
||||
Reference in New Issue
Block a user