[JS] Migrate tests onto IR compiler with outputDir API instead of outputFile

^KT-61117 fixed
This commit is contained in:
Ilya Goncharov
2023-11-29 11:21:56 +00:00
committed by Space Team
parent e50f6e6bca
commit 08e3cb300a
38 changed files with 208 additions and 201 deletions
@@ -1,7 +1,4 @@
c [sourceSetHolder]
pJvm [compilationAndSourceSetHolder, jvm]
pJvm -> c [include]
pJs [compilationAndSourceSetHolder, js]
pJs -> c [include]
pJvm -> c [include]
@@ -1,34 +1,6 @@
================ Step #1 make compilation fail =================
Building c
Building pJs
Cleaning output files:
out/production/pJs/pJs.js
out/production/pJs/pJs.meta.js
out/production/pJs/pJs/root-package.kjsm
End of files
Complementary files. Marked as dirty by Kotlin:
pJs/src/fJs.kt
Compiling files:
c/src/f.kt
pJs/src/fJs.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
[pJs] Expecting a top level declaration
[pJs] Expecting a top level declaration
================ Step #2 fix error =================
Building c
Building pJs
Compiling files:
c/src/f.kt
pJs/src/fJs.kt
End of files
Exit code: OK
------------------------------------------
Building pJvm
Cleaning output files:
out/production/pJvm/META-INF/pJvm.kotlin_module
@@ -42,5 +14,17 @@ Compiling files:
c/src/f.kt
pJvm/src/fJvm.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
================ Step #2 fix error =================
Building c
Building pJvm
Compiling files:
c/src/f.kt
pJvm/src/fJvm.kt
End of files
Exit code: OK
------------------------------------------
@@ -1,7 +1,4 @@
c [sourceSetHolder]
pJvm [compilationAndSourceSetHolder, jvm]
pJvm -> c [include]
pJs [compilationAndSourceSetHolder, js]
pJs -> c [include]
pJvm -> c [include]
@@ -1,41 +1,6 @@
================ Step #1 make compilation fail =================
Building c
Building pJs
Cleaning output files:
out/production/pJs/pJs.js
out/production/pJs/pJs.meta.js
out/production/pJs/pJs/root-package.kjsm
End of files
Complementary files. Marked as dirty by Kotlin:
c/src/g.kt
pJs/src/fg.kt
Compiling files:
c/src/f.kt
c/src/g.kt
pJs/src/fg.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
[pJs] Expecting a top level declaration
[pJs] Expecting a top level declaration
================ Step #2 fix error =================
Building c
Building pJs
Complementary files. Marked as dirty by Kotlin:
c/src/g.kt
Compiling files:
c/src/f.kt
c/src/g.kt
pJs/src/fg.kt
End of files
Exit code: OK
------------------------------------------
ChunkBuildStarted. Marked as dirty by Kotlin:
c/src/g.kt
Building pJvm
Cleaning output files:
out/production/pJvm/META-INF/pJvm.kotlin_module
@@ -51,5 +16,20 @@ Compiling files:
c/src/g.kt
pJvm/src/fg.kt
End of files
Exit code: ABORT
------------------------------------------
COMPILATION FAILED
================ Step #2 fix error =================
Building c
Building pJvm
Complementary files. Marked as dirty by Kotlin:
c/src/g.kt
Compiling files:
c/src/f.kt
c/src/g.kt
pJvm/src/fg.kt
End of files
Exit code: OK
------------------------------------------