summaryrefslogtreecommitdiff
path: root/test/lit/help/wasm2js.test
diff options
context:
space:
mode:
Diffstat (limited to 'test/lit/help/wasm2js.test')
-rw-r--r--test/lit/help/wasm2js.test36
1 files changed, 36 insertions, 0 deletions
diff --git a/test/lit/help/wasm2js.test b/test/lit/help/wasm2js.test
new file mode 100644
index 000000000..b326bd77b
--- /dev/null
+++ b/test/lit/help/wasm2js.test
@@ -0,0 +1,36 @@
+;; RUN: wasm2js --help | filecheck %s
+
+;; CHECK: wasm2js INFILE
+;; CHECK-NEXT:
+;; CHECK-NEXT: Transform .wasm/.wat files to asm.js
+
+;; Skip standard tool options
+
+;; CHECK: --output,-o Output file (stdout if not
+;; CHECK-NEXT: specified)
+;; CHECK-NEXT:
+;; CHECK-NEXT: --allow-asserts Allow compilation of .wast
+;; CHECK-NEXT: testing asserts
+;; CHECK-NEXT:
+;; CHECK-NEXT: --pedantic Emulate WebAssembly trapping
+;; CHECK-NEXT: behavior
+;; CHECK-NEXT:
+;; CHECK-NEXT: --emscripten Emulate the glue in
+;; CHECK-NEXT: emscripten-compatible form (and
+;; CHECK-NEXT: not ES6 module form)
+;; CHECK-NEXT:
+;; CHECK-NEXT: --deterministic Replace WebAssembly trapping
+;; CHECK-NEXT: behavior deterministically (the
+;; CHECK-NEXT: default is to not care about
+;; CHECK-NEXT: what would trap in wasm, like a
+;; CHECK-NEXT: load out of bounds or integer
+;; CHECK-NEXT: divide by zero; with this flag,
+;; CHECK-NEXT: we try to be deterministic at
+;; CHECK-NEXT: least in what happens, which
+;; CHECK-NEXT: might or might not be to trap
+;; CHECK-NEXT: like wasm, but at least should
+;; CHECK-NEXT: not vary)
+;; CHECK-NEXT:
+;; CHECK-NEXT: --symbols-file Emit a symbols file that maps
+;; CHECK-NEXT: function indexes to their
+;; CHECK-NEXT: original names