summaryrefslogtreecommitdiff
path: root/test/lit/node/fuzz_shell.wast
blob: deb157ec87354e3540fb207bf6b7c269b3b4ea50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
;; Test running a wasm file in fuzz_shell.js.

(module
  (func $test (export "test") (result i32)
    (i32.const 42)
  )
)

;; Build to a binary wasm.
;;
;; RUN: wasm-opt %s -o %t.wasm -q

;; Run in node.
;;
;; RUN: node %S/../../../scripts/fuzz_shell.js %t.wasm | filecheck %s
;;
;; CHECK: [fuzz-exec] calling test
;; CHECK: [fuzz-exec] note result: test => 42