[JS IR] Fixes in tests
- Compilation of tests - add arguments to extra help
This commit is contained in:
committed by
TeamCityServer
parent
b76f5547e4
commit
d65cbdf44d
+4
@@ -8,6 +8,7 @@ where advanced options include:
|
|||||||
-Xfriend-modules-disabled Disable internal declaration export
|
-Xfriend-modules-disabled Disable internal declaration export
|
||||||
-Xgenerate-dts Generate TypeScript declarations .d.ts file alongside JS file. Available in IR backend only.
|
-Xgenerate-dts Generate TypeScript declarations .d.ts file alongside JS file. Available in IR backend only.
|
||||||
-Xinclude=<path> A path to an intermediate library that should be processed in the same manner as source files.
|
-Xinclude=<path> A path to an intermediate library that should be processed in the same manner as source files.
|
||||||
|
-Xir-base-class-in-metadata Write base class into metadata
|
||||||
-Xir-build-cache Use compiler to build cache
|
-Xir-build-cache Use compiler to build cache
|
||||||
-Xir-dce Perform experimental dead code elimination
|
-Xir-dce Perform experimental dead code elimination
|
||||||
-Xir-dce-driven Perform a more experimental faster dead code elimination
|
-Xir-dce-driven Perform a more experimental faster dead code elimination
|
||||||
@@ -15,9 +16,12 @@ where advanced options include:
|
|||||||
Print declarations' reachability info to stdout during performing DCE
|
Print declarations' reachability info to stdout during performing DCE
|
||||||
-Xir-dce-runtime-diagnostic={log|exception}
|
-Xir-dce-runtime-diagnostic={log|exception}
|
||||||
Enable runtime diagnostics when performing DCE instead of removing declarations
|
Enable runtime diagnostics when performing DCE instead of removing declarations
|
||||||
|
-Xir-force-all-js Compile all the code unconditionally
|
||||||
|
-Xir-legacy-property-access Force property access via JS properties (requires -Xir-export-all)
|
||||||
-Xir-module-name=<name> Specify a compilation module name for IR backend
|
-Xir-module-name=<name> Specify a compilation module name for IR backend
|
||||||
-Xir-only Disables pre-IR backend
|
-Xir-only Disables pre-IR backend
|
||||||
-Xir-per-module Splits generated .js per-module
|
-Xir-per-module Splits generated .js per-module
|
||||||
|
-Xir-per-module-output-name Adds a custom output name to the splitted js files
|
||||||
-Xir-produce-js Generates JS file using IR backend. Also disables pre-IR backend
|
-Xir-produce-js Generates JS file using IR backend. Also disables pre-IR backend
|
||||||
-Xir-produce-klib-dir Generate unpacked KLIB into parent directory of output JS file.
|
-Xir-produce-klib-dir Generate unpacked KLIB into parent directory of output JS file.
|
||||||
In combination with -meta-info generates both IR and pre-IR versions of library.
|
In combination with -meta-info generates both IR and pre-IR versions of library.
|
||||||
|
|||||||
@@ -492,7 +492,7 @@ class GenerateIrRuntime {
|
|||||||
emptyList(),
|
emptyList(),
|
||||||
true,
|
true,
|
||||||
perFile,
|
perFile,
|
||||||
null
|
jsOutputName = null
|
||||||
)
|
)
|
||||||
|
|
||||||
return tmpKlibDir
|
return tmpKlibDir
|
||||||
|
|||||||
Generated
+5
@@ -5246,6 +5246,11 @@ public class IrBoxJsES6TestGenerated extends AbstractIrBoxJsES6Test {
|
|||||||
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
|
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("externalClassNameClash.kt")
|
||||||
|
public void testExternalClassNameClash() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/jsModule/externalClassNameClash.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("externalClassWithDefaults.kt")
|
@TestMetadata("externalClassWithDefaults.kt")
|
||||||
public void testExternalClassWithDefaults() throws Exception {
|
public void testExternalClassWithDefaults() throws Exception {
|
||||||
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
|
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
|
||||||
|
|||||||
+5
@@ -5246,6 +5246,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
|
|||||||
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
|
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("externalClassNameClash.kt")
|
||||||
|
public void testExternalClassNameClash() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/jsModule/externalClassNameClash.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("externalClassWithDefaults.kt")
|
@TestMetadata("externalClassWithDefaults.kt")
|
||||||
public void testExternalClassWithDefaults() throws Exception {
|
public void testExternalClassWithDefaults() throws Exception {
|
||||||
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
|
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
|
||||||
|
|||||||
+5
@@ -5256,6 +5256,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
|||||||
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
|
runTest("js/js.translator/testData/box/jsModule/externalClass.kt");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@TestMetadata("externalClassNameClash.kt")
|
||||||
|
public void testExternalClassNameClash() throws Exception {
|
||||||
|
runTest("js/js.translator/testData/box/jsModule/externalClassNameClash.kt");
|
||||||
|
}
|
||||||
|
|
||||||
@TestMetadata("externalClassWithDefaults.kt")
|
@TestMetadata("externalClassWithDefaults.kt")
|
||||||
public void testExternalClassWithDefaults() throws Exception {
|
public void testExternalClassWithDefaults() throws Exception {
|
||||||
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
|
runTest("js/js.translator/testData/box/jsModule/externalClassWithDefaults.kt");
|
||||||
|
|||||||
Reference in New Issue
Block a user