JPS tests: support custom mpp multi module tests, rearrange test data files for more consistency, configure js modules with facet (not with stdlib dependency which should be deprecated), temporary mute some complex mpp tests

This commit is contained in:
Sergey Rostov
2018-09-10 13:21:35 +03:00
parent 8cd3b46f05
commit 1b93f07a76
70 changed files with 362 additions and 1305 deletions
@@ -0,0 +1 @@
Single module tests that run on every platform (currently JVM and JS)
@@ -0,0 +1,3 @@
actual class X {
actual fun foo(): Any = 0
}
@@ -0,0 +1,3 @@
actual class Y {
actual fun foo(): Any = 0
}
@@ -0,0 +1,3 @@
actual class Z {
actual fun foo(): Any = 0
}
@@ -0,0 +1,19 @@
================ Step #1 =================
Compiling files:
src/X.kt
src/commonX.kt
src/useX.kt
End of files
Exit code: SUCCESS
================ Step #2 =================
Compiling files:
src/Y.kt
src/Z.kt
src/commonY.kt
src/commonZ.kt
src/useYZ.kt
End of files
Exit code: SUCCESS
@@ -0,0 +1,5 @@
expect class X {
fun foo(): Any
}
expect fun useX(x: X): Unit
@@ -0,0 +1,5 @@
expect class Y {
fun foo(): Any
}
expect fun useY(y: Y): Unit
@@ -0,0 +1,5 @@
expect class Z {
fun foo(): Any
}
expect fun useZ(z: Z): Unit
@@ -0,0 +1 @@
fun dummy() {}
@@ -0,0 +1,3 @@
actual fun useX(x: X): Unit {
x.foo()
}
@@ -0,0 +1,7 @@
actual fun useY(y: Y): Unit {
y.foo()
}
actual fun useZ(z: Z): Unit {
z.foo()
}
@@ -0,0 +1,3 @@
actual class X {
actual fun foo(): Any = 0
}
@@ -0,0 +1,3 @@
actual class Y {
actual fun foo(): Any = 0
}
@@ -0,0 +1,3 @@
actual class Z {
actual fun foo(): Any = 0
}
@@ -0,0 +1,19 @@
================ Step #1 =================
Compiling files:
src/X.kt
src/commonX.kt
src/useX.kt
End of files
Exit code: SUCCESS
================ Step #2 =================
Compiling files:
src/Y.kt
src/Z.kt
src/commonY.kt
src/commonZ.kt
src/useYZ.kt
End of files
Exit code: SUCCESS
@@ -0,0 +1,5 @@
expect class X {
fun foo(): Any
}
expect fun useX(x: X): Unit
@@ -0,0 +1,5 @@
expect class Y {
fun foo(): Any
}
expect fun useY(y: Y): Unit
@@ -0,0 +1,5 @@
expect class Z {
fun foo(): Any
}
expect fun useZ(z: Z): Unit
@@ -0,0 +1 @@
fun dummy() {}
@@ -0,0 +1,3 @@
actual fun useX(x: X): Unit {
x.foo()
}
@@ -0,0 +1,2 @@
fun useX(x: String): Int =
x.length
@@ -0,0 +1,7 @@
actual fun useY(y: Y): Unit {
y.foo()
}
actual fun useZ(z: Z): Unit {
z.foo()
}