TestRunner support in test's build.gradle

* Fixes to tests
 * RunKonanTest runs tests build with TestRunner
 * Standalone tests
This commit is contained in:
Pavel Punegov
2017-10-16 11:45:50 +03:00
parent 9d077d7f4f
commit 35505007d2
29 changed files with 149 additions and 72 deletions
@@ -0,0 +1,4 @@
// TODO: remove kotlin_native.io once overrides are in place.
fun main(args : Array<String>) {
println("Hello, world!")
}
@@ -1,5 +1,3 @@
package runtime.basic.entry1
fun fail() {
println("Test failed, this is a wrong main() function.")
}
@@ -1,5 +1,3 @@
package runtime.basic.entry2
fun main(args: Array<String>) {
fail()
}
@@ -1,7 +1,3 @@
package runtime.basic.initializers2
import kotlin.test.*
class A(val msg: String) {
init {
println("init $msg")
@@ -13,7 +9,7 @@ val globalValue1 = 1
val globalValue2 = A("globalValue2")
val globalValue3 = A("globalValue3")
@Test fun runTest() {
fun main(args: Array<String>) {
println(globalValue1.toString())
println(globalValue2.toString())
println(globalValue3.toString())
@@ -1,5 +1,3 @@
package runtime.basic.entry2
fun fail() {
println("Test failed, this is a wrong main() function.")
}