[Wasm] Reenable gradle integration tests for node and binaryen

* Update to supported node.js version
* Add missing binaryen flag

Merge-request: KT-MR-8180
Merged-by: Svyatoslav Kuzmich <svyatoslav.kuzmich@jetbrains.com>
This commit is contained in:
Svyatoslav Kuzmich
2023-01-04 08:35:06 +00:00
committed by Space Team
parent 451e27fd46
commit 3cf811012a
3 changed files with 4 additions and 6 deletions
@@ -1991,18 +1991,15 @@ class NewMultiplatformIT : BaseGradleIT() {
}
@Test
@Ignore
fun testWasmNodeTest() = testWasmTest("nodejs", "Node", useBinaryen = false)
@Test
@Ignore
fun testWasmWithBinaryenNodeTest() = testWasmTest("nodejs", "Node", useBinaryen = true)
@Test
fun testWasmD8Test() = testWasmTest("d8", "D8", useBinaryen = false)
@Test
@Ignore
fun testWasmWithBinaryenD8Test() = testWasmTest("d8", "D8", useBinaryen = true)
@Test
@@ -8,9 +8,9 @@ repositories {
}
with(org.jetbrains.kotlin.gradle.targets.js.nodejs.NodeJsRootPlugin.apply(rootProject)) {
//nightly nodejs that supports wasm M5
nodeVersion = "19.0.0-nightly202206017ad5b420ae"
nodeDownloadBaseUrl = "https://nodejs.org/download/nightly/"
//canary nodejs that supports wasm GC M6
nodeVersion = "20.0.0-v8-canary2022112061c569ba0d"
nodeDownloadBaseUrl = "https://nodejs.org/download/v8-canary"
}
with(org.jetbrains.kotlin.gradle.targets.js.d8.D8RootPlugin.apply(rootProject)) {
@@ -32,6 +32,7 @@ constructor() : AbstractExecTask<BinaryenExec>(BinaryenExec::class.java) {
"--enable-gc",
"--enable-reference-types",
"--enable-exception-handling",
"--enable-bulk-memory", // For array initialization from data sections
"--hybrid",
"-O3",
"--inline-functions-with-loops",