BC native tests port to Konan's TestRunner
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally3
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally4
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally5
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally6
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_finally7
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -38,7 +42,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_if1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_if2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_inline1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -21,7 +25,7 @@ inline suspend fun inline_s2(): Int {
|
||||
return 42
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_inline2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -22,7 +26,7 @@ inline suspend fun inline_s2(): Int {
|
||||
return x
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_inline3
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -35,7 +39,7 @@ inline suspend fun inline_s2(): Int {
|
||||
return x
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_tryCatch1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_tryCatch2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -32,7 +36,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_tryCatch3
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -38,7 +42,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_tryCatch4
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -38,7 +42,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_tryCatch5
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -38,7 +42,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_while1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -44,7 +48,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.controlFlow_while2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -44,7 +48,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.correctOrder1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -27,7 +31,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.degenerate1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -15,7 +19,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
builder {
|
||||
s1()
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.degenerate2
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -22,7 +26,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
builder {
|
||||
s2()
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.returnsUnit1
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -26,7 +30,7 @@ suspend fun s3(x: Int) {
|
||||
inline_s2(x)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.simple
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -16,7 +20,7 @@ fun builder(c: suspend () -> Unit) {
|
||||
c.startCoroutine(EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
package codegen.coroutines.withReceiver
|
||||
|
||||
import kotlin.test.*
|
||||
|
||||
import kotlin.coroutines.experimental.*
|
||||
import kotlin.coroutines.experimental.intrinsics.*
|
||||
|
||||
@@ -18,7 +22,7 @@ fun builder(c: suspend Controller.() -> Unit) {
|
||||
c.startCoroutine(Controller(), EmptyContinuation)
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
@Test fun runTest() {
|
||||
var result = 0
|
||||
|
||||
builder {
|
||||
|
||||
Reference in New Issue
Block a user