[Gradle, JS] Migrate JS cli tests to ir backend
This commit is contained in:
committed by
Space Team
parent
38533977f0
commit
148d8c9246
+8
-4
@@ -1,5 +1,9 @@
|
||||
compiler/testData/integration/ant/js/simpleWithoutStdlibAndFolderAsAnotherLib/jslib-example/LibraryExample.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-meta-info
|
||||
-output
|
||||
$TEMP_DIR$/jslib-example.js
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
jslib-example
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
+1
-3
@@ -1,3 +1 @@
|
||||
// EXISTS: jslib-example.meta.js
|
||||
// EXISTS: jslib-example.js
|
||||
// EXISTS: jslib-example/library/sample/sample.kjsm
|
||||
// EXISTS: default/manifest
|
||||
@@ -1,44 +0,0 @@
|
||||
if (typeof kotlin === 'undefined') {
|
||||
throw new Error("Error loading module 'LibraryExample'. Its dependency 'kotlin' was not found. Please, check whether 'kotlin' is loaded prior to 'LibraryExample'.");
|
||||
}
|
||||
var LibraryExample = function (_, Kotlin) {
|
||||
'use strict';
|
||||
function pairAdd(p) {
|
||||
return p.first + p.second | 0;
|
||||
}
|
||||
function pairMul(p) {
|
||||
return Kotlin.imul(p.first, p.second);
|
||||
}
|
||||
function IntHolder(value) {
|
||||
this.value = value;
|
||||
}
|
||||
IntHolder.$metadata$ = {
|
||||
kind: Kotlin.Kind.CLASS,
|
||||
simpleName: 'IntHolder',
|
||||
interfaces: []
|
||||
};
|
||||
IntHolder.prototype.component1 = function () {
|
||||
return this.value;
|
||||
};
|
||||
IntHolder.prototype.copy_za3lpa$ = function (value) {
|
||||
return new IntHolder(value === void 0 ? this.value : value);
|
||||
};
|
||||
IntHolder.prototype.toString = function () {
|
||||
return 'IntHolder(value=' + Kotlin.toString(this.value) + ')';
|
||||
};
|
||||
IntHolder.prototype.hashCode = function () {
|
||||
var result = 0;
|
||||
result = result * 31 + Kotlin.hashCode(this.value) | 0;
|
||||
return result;
|
||||
};
|
||||
IntHolder.prototype.equals = function (other) {
|
||||
return this === other || (other !== null && (typeof other === 'object' && (Object.getPrototypeOf(this) === Object.getPrototypeOf(other) && Kotlin.equals(this.value, other.value))));
|
||||
};
|
||||
var package$library = _.library || (_.library = {});
|
||||
var package$sample = package$library.sample || (package$library.sample = {});
|
||||
package$sample.pairAdd_1fzo63$ = pairAdd;
|
||||
package$sample.pairMul_1fzo63$ = pairMul;
|
||||
package$sample.IntHolder = IntHolder;
|
||||
Kotlin.defineModule('LibraryExample', _);
|
||||
return _;
|
||||
}(typeof LibraryExample === 'undefined' ? {} : LibraryExample, kotlin);
|
||||
@@ -1 +0,0 @@
|
||||
// Kotlin.kotlin_module_metadata(1, "LibraryExample", "H4sIAAAAAAAAAJVW227TQBB1fF1Pb64LJTUgRBEgbiWkCIEESC19KJWQgIoPcJ1tsqmzG9ZO0v4Ar0h9QP2UfAGf0N+BcS5O0tRu6gfvaHdmzlzOjq2490FxFa94Rv4Nn0LXHsmnRHE9sMD49oOz2NVBdRTPPCNK11aSs4cwD+aRiEPGQWXChUQBdKI4hUQNffVcvIabqZol6WFIgxjUeuQ6I318Fxw1sVK7tjp0rtf9tg96K2ZhlvOXsJo6n6fHTSpZg/LYzzToBV3/2aLyBNQWy1J7BzdAE7IKWmczAK0iGqAFUeSuXowZ36qjJaZa19YS0yfgpCGZ0udVGmWh7MNGqgqBkAJT5TSazASA8VgyHrFgJvwNWBoP/bgm8yv9CBbSIJJEr1OSlgxnCakIRs90mkO3gQzbMX34AGCEmBXWxhi95gLRaPqSRYJn1vw5rKT6dkQRmgfZHXqBSacdakqBbYlZtvqFYMKE6ywnmAn3IwLkXaVeQayjmhRcRGB06EE1zG/wZY2L2tVZGvcebl00NWkbaTkTEycGRD0zqx4H+mrTHNgcq1AP3zhosbCSn/FTWJ4aOVnobyZSnMMGHwrZ8JEU+RjPwE0xCN5QKnn21NmC9asvej7ebw3+FMAK2YH0cXaZkd9ohhTszzzeFWGFylGZtvgJGG0/bFHQ8DhBbDQFR5BXoAeiidbIez+MwNoWIqQ+B0PENXRBan5U+yQqFEgs9pOpUwVzsFpNn8mtSgUKTdC/otzf+dIK3Y9jgZtJ4EUFdzSUNUdHOVnNwQqDdXGwLhcVb8e76yx5askou47jLbq6i3L/XSJdouCxm3Pcr/M6I79IUS2rJX2buKZjJBZ7tmMl6+5fbW/FISiqZYI8NfqbBdy0UTTLxJnz9GKhpO+ea2g03zs/L6C4gKKF4veBSwQ8JSpMDdpkdM7OygMpOhGVWYR5C2tjvhe4iNkhC/z+MMlFKSHKyNI4pHFQy7d4DIuTUyUrqERxmIAe0+PMOzXxSam3Mz8pd8BOGT199T9A8eLwQcbJCMk4y/Qp46AfmVsdIY+ovGbxWEivsFgDs/+fMh3/Dty79MdnbFzMkMbEJ8LnyIQeCzJK6g1U/wOSAB0W3QkAAA==");
|
||||
BIN
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,2 @@
|
||||
|
||||
<LibraryExample>:library.sample
|
||||
BIN
Binary file not shown.
@@ -0,0 +1,8 @@
|
||||
abi_version=1.8.0
|
||||
builtins_platform=JS
|
||||
compiler_version=1.9.255-SNAPSHOT
|
||||
depends=kotlin
|
||||
metadata_version=1.4.1
|
||||
serializedIrFileFingerprints=3vriludieft1x.1583499ndbss7
|
||||
serializedKlibFingerprint=3f3efqjuxw1sw.xi1rrqn6iire
|
||||
unique_name=LibraryExample
|
||||
-4
@@ -1,4 +0,0 @@
|
||||
$TESTDATA_DIR$/inlineCycle.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TEMP_DIR$
|
||||
-20
@@ -1,20 +0,0 @@
|
||||
inline fun a(l: () -> Unit) {
|
||||
b(l)
|
||||
|
||||
//check that nested not recognized as cycle
|
||||
c {
|
||||
c {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
inline fun b(p: () -> Unit) {
|
||||
p()
|
||||
a(p)
|
||||
}
|
||||
|
||||
inline fun c(p: () -> Unit) {
|
||||
p()
|
||||
}
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
compiler/testData/cli/js/inlineCycle.kt:2:5: error: the 'b' invocation is a part of inline cycle
|
||||
b(l)
|
||||
^
|
||||
compiler/testData/cli/js/inlineCycle.kt:15:5: error: the 'a' invocation is a part of inline cycle
|
||||
a(p)
|
||||
^
|
||||
COMPILATION_ERROR
|
||||
+8
-3
@@ -1,6 +1,11 @@
|
||||
$TESTDATA_DIR$/languageVersion.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
-language-version
|
||||
1.4
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
|
||||
BIN
Binary file not shown.
Binary file not shown.
+1
-1
@@ -1,5 +1,5 @@
|
||||
# jslib
|
||||
|
||||
Path to sources: `compiler/testData/cli/js/jslib`
|
||||
Path to sources: `compiler/testData/cli/js/lib`
|
||||
|
||||
`folderAsLib/LibraryExample.js`, `folderAsLib/LibraryExample.meta.js` and `LibraryExample.jar` should be updated after changing some files in source folder.
|
||||
+7
-4
@@ -1,6 +1,9 @@
|
||||
$TESTDATA_DIR$/withLib.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
not/existing/path
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
$STDLIB_JS$:not/existing/path
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+1
-1
@@ -1,2 +1,2 @@
|
||||
error: path 'not/existing/path' does not exist
|
||||
error: could not find "not/existing/path" in [$USER_DIR$]
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
$TESTDATA_DIR$/separateModules/sepModule1.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-meta-info
|
||||
-Xmetadata-only
|
||||
-output
|
||||
$TEMP_DIR$/m1/m1.js
|
||||
---
|
||||
$TESTDATA_DIR$/separateModules/sepModule2.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-libraries
|
||||
$TEMP_DIR$/m1
|
||||
-output
|
||||
$TEMP_DIR$/m2/m2.js
|
||||
@@ -1 +0,0 @@
|
||||
OK
|
||||
@@ -1,5 +0,0 @@
|
||||
// EXISTS: m1/m1.meta.js
|
||||
// ABSENT: m1/m1.js
|
||||
// EXISTS: m1/m1/m1/m1.kjsm
|
||||
|
||||
// EXISTS: m2/m2.js
|
||||
@@ -1,12 +0,0 @@
|
||||
$TESTDATA_DIR$/separateModules/sepModule1.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-meta-info
|
||||
-output
|
||||
$TEMP_DIR$/m1/m.js
|
||||
---
|
||||
$TESTDATA_DIR$/separateModules/sepModule2.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-libraries
|
||||
$TEMP_DIR$/m1
|
||||
-output
|
||||
$TEMP_DIR$/m2/m.js
|
||||
@@ -1,2 +0,0 @@
|
||||
warning: module "m" depends on module with the same name
|
||||
OK
|
||||
@@ -1 +0,0 @@
|
||||
// NOT_CONTAINS: m2/m.js, foo(bar$lambda);
|
||||
@@ -1,12 +0,0 @@
|
||||
$TESTDATA_DIR$/separateModules/sepModule3.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-meta-info
|
||||
-output
|
||||
$TEMP_DIR$/m3/m.js
|
||||
---
|
||||
$TESTDATA_DIR$/separateModules/sepModule4.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-libraries
|
||||
$TEMP_DIR$/m3
|
||||
-output
|
||||
$TEMP_DIR$/m4/m.js
|
||||
@@ -1,2 +0,0 @@
|
||||
warning: module "m" depends on module with the same name
|
||||
OK
|
||||
@@ -1 +0,0 @@
|
||||
// NOT_CONTAINS: m4/m.js, foofaa();
|
||||
+7
-4
@@ -1,6 +1,9 @@
|
||||
$TESTDATA_DIR$/withLib.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
$STDLIB_JS$:compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+1
-7
@@ -1,8 +1,2 @@
|
||||
warning: 'compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib' is not a valid Kotlin Javascript library
|
||||
compiler/testData/cli/js/withLib.kt:2:8: error: unresolved reference: library
|
||||
import library.sample.*
|
||||
^
|
||||
compiler/testData/cli/js/withLib.kt:6:13: error: unresolved reference: pairAdd
|
||||
val x = pairAdd(p)
|
||||
^
|
||||
error: could not find "compiler/testData/integration/ant/js/simpleWithJsFileAsAnotherLib" in [$USER_DIR$]
|
||||
COMPILATION_ERROR
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TESTDATA_DIR$
|
||||
@@ -1,2 +0,0 @@
|
||||
error: cannot open output file '$TESTDATA_DIR$': is a directory
|
||||
COMPILATION_ERROR
|
||||
@@ -1 +0,0 @@
|
||||
// ABSENT: out.js
|
||||
@@ -1,6 +0,0 @@
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-output-postfix
|
||||
not/existing/path
|
||||
@@ -1,2 +0,0 @@
|
||||
error: output postfix file 'not/existing/path' not found
|
||||
COMPILATION_ERROR
|
||||
@@ -1 +0,0 @@
|
||||
// ABSENT: out.js
|
||||
@@ -1,6 +0,0 @@
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-output-prefix
|
||||
not/existing/path
|
||||
@@ -1,2 +0,0 @@
|
||||
error: output prefix file 'not/existing/path' not found
|
||||
COMPILATION_ERROR
|
||||
@@ -1 +0,0 @@
|
||||
// ABSENT: out.js
|
||||
+8
-3
@@ -1,4 +1,9 @@
|
||||
$TESTDATA_DIR$/reifiedIntersectionType.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
package m1
|
||||
|
||||
inline fun foo(action: () -> Int): Int {
|
||||
return action()
|
||||
}
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
package m2
|
||||
|
||||
import m1.*
|
||||
|
||||
fun bar(): Int {
|
||||
foo { return 100 }
|
||||
return -99
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if (bar() == 100) return "OK"
|
||||
return "fail"
|
||||
}
|
||||
@@ -1,10 +0,0 @@
|
||||
package m3
|
||||
|
||||
|
||||
fun foofaa(): Unit { }
|
||||
|
||||
inline fun foo(action: () -> Int): Int {
|
||||
foofaa()
|
||||
return action()
|
||||
}
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
package m4
|
||||
|
||||
import m3.*
|
||||
|
||||
inline fun foo(action: () -> Int): Int {
|
||||
return action()
|
||||
}
|
||||
|
||||
fun bar(): Int {
|
||||
foo { return 100 }
|
||||
return -99
|
||||
}
|
||||
|
||||
fun box(): String {
|
||||
if (bar() == 100) return "OK"
|
||||
return "fail"
|
||||
}
|
||||
+8
-3
@@ -1,4 +1,9 @@
|
||||
$TESTDATA_DIR$/simple2js.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// EXISTS: out.js
|
||||
// EXISTS: default/manifest
|
||||
|
||||
+8
-3
@@ -1,7 +1,12 @@
|
||||
$TESTDATA_DIR$/sourceMap.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-prefix
|
||||
./
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+3
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
+8
-3
@@ -1,7 +1,12 @@
|
||||
$TESTDATA_DIR$/sourceMapCharEscape.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-embed-sources
|
||||
always
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
@@ -1,7 +1,12 @@
|
||||
$TESTDATA_DIR$/sourceMapDuplicatePath/
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-base-dirs
|
||||
$TESTDATA_DIR$/sourceMapDuplicatePath/foo:$TESTDATA_DIR$/sourceMapDuplicatePath/bar
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
warning: there are files with same path 'lib.kt', relative to source roots: '$TESTDATA_DIR$/sourceMapDuplicatePath/foo/lib.kt' and '$TESTDATA_DIR$/sourceMapDuplicatePath/bar/lib.kt'. This will likely cause problems with debugger
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
+8
-3
@@ -1,9 +1,14 @@
|
||||
$TESTDATA_DIR$/sourceMap.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-prefix
|
||||
./
|
||||
-source-map-embed-sources
|
||||
always
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
+8
-3
@@ -1,7 +1,12 @@
|
||||
$TESTDATA_DIR$/sourceMap.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-prefix
|
||||
/localhost/src/
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
+15
-8
@@ -1,14 +1,21 @@
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/src/lib.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-meta-info
|
||||
-output
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/lib.js
|
||||
-ir-output-dir
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/out
|
||||
-ir-output-name
|
||||
lib
|
||||
---
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/main/src/main.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/
|
||||
$STDLIB_JS$:$TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/
|
||||
-source-map
|
||||
-output
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/main/out/main.js
|
||||
-ir-output-dir
|
||||
$TESTDATA_DIR$/sourceMapRelativeRoot/main/out
|
||||
-ir-output-name
|
||||
main
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TESTDATA_DIR$/sourceMapRelativeRoot/main/out
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
// EXISTS: $TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/lib.js
|
||||
// EXISTS: $TESTDATA_DIR$/sourceMapRelativeRoot/main/out/main.js
|
||||
// CONTAINS: $TESTDATA_DIR$/sourceMapRelativeRoot/lib/out/lib.js.map, "../src/lib.kt"
|
||||
// CONTAINS: $TESTDATA_DIR$/sourceMapRelativeRoot/main/out/main.js.map, "../src/main.kt"
|
||||
// CONTAINS: $TESTDATA_DIR$/sourceMapRelativeRoot/main/out/main.js.map, "../../lib/src/lib.kt"
|
||||
|
||||
+8
-3
@@ -1,8 +1,13 @@
|
||||
$TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
|
||||
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-prefix
|
||||
./
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
+8
-3
@@ -1,8 +1,13 @@
|
||||
$TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
|
||||
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-base-dirs
|
||||
$TESTDATA_DIR$/
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
+9
-3
@@ -2,9 +2,15 @@ $TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
|
||||
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
|
||||
$TESTDATA_DIR$/sourceMapRoot/bar/baz/file3.kt
|
||||
$TESTDATA_DIR$/sourceMapRoot/foo/baz/file4.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-base-dirs
|
||||
$TESTDATA_DIR$/sourceMapRoot/foo
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
+9
-3
@@ -1,8 +1,14 @@
|
||||
$TESTDATA_DIR$/sourceMapRoot/foo/file1.kt
|
||||
$TESTDATA_DIR$/sourceMapRoot/bar/file2.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-js
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-source-map
|
||||
-source-map-base-dirs
|
||||
$TESTDATA_DIR$/foo:$TESTDATA_DIR$/bar
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
info: produce executable: $TMP_DIR$
|
||||
info: cache directory: null
|
||||
info: executable production duration: [time]
|
||||
OK
|
||||
|
||||
+8
-3
@@ -1,5 +1,10 @@
|
||||
$TESTDATA_DIR$/../warnings.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
$STDLIB_JS$
|
||||
-nowarn
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+7
-4
@@ -1,6 +1,9 @@
|
||||
$TESTDATA_DIR$/withLib.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
$TESTDATA_DIR$/folderAsLib
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
$STDLIB_JS$:$TESTDATA_DIR$/folderAsLib
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// EXISTS: out.js
|
||||
// EXISTS: default/manifest
|
||||
|
||||
+7
-4
@@ -1,6 +1,9 @@
|
||||
$TESTDATA_DIR$/withLib.kt
|
||||
-Xforce-deprecated-legacy-compiler-usage
|
||||
-Xir-produce-klib-dir
|
||||
-Xir-only
|
||||
-libraries
|
||||
$TESTDATA_DIR$/lib/LibraryExample.jar
|
||||
-output
|
||||
$TEMP_DIR$/out.js
|
||||
$STDLIB_JS$:$TESTDATA_DIR$/lib/LibraryExample.klib
|
||||
-ir-output-dir
|
||||
$TEMP_DIR$
|
||||
-ir-output-name
|
||||
out
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
// EXISTS: out.js
|
||||
// EXISTS: default/manifest
|
||||
|
||||
Reference in New Issue
Block a user