Add multi-module JS IC tests with JPS

This commit is contained in:
Alexey Tsvetkov
2018-07-18 12:26:57 +03:00
parent 3227300f18
commit 11977cc1c1
238 changed files with 1617 additions and 172 deletions
@@ -0,0 +1,40 @@
================ Step #1 =================
Building module1
Cleaning output files:
out/production/module1/META-INF/module1.kotlin_module
out/production/module1/a/AKt.class
End of files
Compiling files:
module1/src/a.kt
End of files
Marked as dirty by Kotlin:
module2/src/b.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Exit code: NOTHING_DONE
------------------------------------------
Building module2
Cleaning output files:
out/production/module2/META-INF/module2.kotlin_module
out/production/module2/b/BKt.class
End of files
Compiling files:
module2/src/b.kt
End of files
Marked as dirty by Kotlin:
module3/src/c.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Exit code: NOTHING_DONE
------------------------------------------
Building module3
Cleaning output files:
out/production/module3/META-INF/module3.kotlin_module
out/production/module3/c/CKt.class
End of files
Compiling files:
module3/src/c.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,3 @@
module1->
module2->module1
module3->module2
@@ -0,0 +1,43 @@
================ Step #1 =================
Building module1
Cleaning output files:
out/production/module1/module1.js
out/production/module1/module1.meta.js
out/production/module1/module1/a/a.kjsm
End of files
Compiling files:
module1/src/a.kt
End of files
Marked as dirty by Kotlin:
module2/src/b.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Exit code: NOTHING_DONE
------------------------------------------
Building module2
Cleaning output files:
out/production/module2/module2.js
out/production/module2/module2.meta.js
out/production/module2/module2/b/b.kjsm
End of files
Compiling files:
module2/src/b.kt
End of files
Marked as dirty by Kotlin:
module3/src/c.kt
Exit code: ADDITIONAL_PASS_REQUIRED
------------------------------------------
Exit code: NOTHING_DONE
------------------------------------------
Building module3
Cleaning output files:
out/production/module3/module3.js
out/production/module3/module3.meta.js
out/production/module3/module3/c/c.kjsm
End of files
Compiling files:
module3/src/c.kt
End of files
Exit code: OK
------------------------------------------
@@ -0,0 +1,6 @@
package a
inline fun a(body: () -> Unit) {
println("i'm inline function")
body()
}
@@ -0,0 +1,6 @@
package a
inline fun a(body: () -> Unit) {
println("i am inline function")
body()
}
@@ -0,0 +1,4 @@
package a
fun other() {
}
@@ -0,0 +1,6 @@
package b
inline fun b(body: () -> Unit) {
a.a { println("to be inlined into b") }
body()
}
@@ -0,0 +1,6 @@
package c
inline fun c(body: () -> Unit) {
b.b { println("to be inlined into b") }
body()
}