Skip to content

Commit 250f1ff

Browse files
committed
Add WebAssembly smoke test for js standalone.
(cherry picked from commit df589a3)
1 parent 132732e commit 250f1ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graal-js/ci.jsonnet

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ local ci = import '../ci.jsonnet';
3737
},
3838

3939
local nativeImageSmokeTest = checkoutJsBenchmarks + {
40-
suiteimports+:: ['vm', 'substratevm'],
40+
suiteimports+:: ['vm', 'substratevm', 'wasm'],
4141
nativeimages+:: ['lib:jsvm', 'lib:jvmcicompiler'],
4242
extraimagebuilderarguments+:: ['-H:+ReportExceptionStackTraces'],
4343
run+: [
@@ -49,9 +49,11 @@ local ci = import '../ci.jsonnet';
4949
['set-export', 'STANDALONE_HOME', ['mx', '--quiet', 'standalone-home', 'js', '--type=native']],
5050
['${STANDALONE_HOME}/bin/js', '--native', '-e', "print('hello:' + Array.from(new Array(10), (x,i) => i*i ).join('|'))"],
5151
['${STANDALONE_HOME}/bin/js', '--native', '../../js-benchmarks/harness.js', '--', '../../js-benchmarks/octane-richards.js', '--show-warmup'],
52+
['${STANDALONE_HOME}/bin/js', '--experimental-options', '--js.webassembly', '-e', 'new WebAssembly.Module(new Uint8Array([0x00,0x61,0x73,0x6d,0x01,0x00,0x00,0x00]))'],
5253
['set-export', 'STANDALONE_HOME', ['mx', '--quiet', 'standalone-home', 'js', '--type=jvm']],
5354
['${STANDALONE_HOME}/bin/js', '--jvm', '-e', "print('hello:' + Array.from(new Array(10), (x,i) => i*i ).join('|'))"],
5455
['${STANDALONE_HOME}/bin/js', '--jvm', '../../js-benchmarks/harness.js', '--', '../../js-benchmarks/octane-richards.js', '--show-warmup'],
56+
['${STANDALONE_HOME}/bin/js', '--experimental-options', '--js.webassembly', '-e', 'new WebAssembly.Module(new Uint8Array([0x00,0x61,0x73,0x6d,0x01,0x00,0x00,0x00]))'],
5557
# maven-downloader smoke test
5658
['VERBOSE_GRAALVM_LAUNCHERS=true', '${STANDALONE_HOME}/bin/js-polyglot-get', '-o', 'maven downloader output', '-a', 'wasm', '-v', '23.1.3'],
5759
],

0 commit comments

Comments
 (0)