Skip to content

Commit

Permalink
Rename run args (WebAssembly#728)
Browse files Browse the repository at this point in the history
As suggested in WebAssembly#725 (comment).
  • Loading branch information
binji authored Jan 21, 2018
1 parent 2d00abf commit c127077
Show file tree
Hide file tree
Showing 237 changed files with 345 additions and 345 deletions.
4 changes: 2 additions & 2 deletions test/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ argument to the executable (which by default is `out/wat2wasm`).
The currently supported list of keys:

- `TOOL`: a set of preconfigured keys, see below.
- `EXE`: the executable to run, defaults to out/wat2wasm
- `RUN`: the executable to run, defaults to out/wat2wasm
- `STDIN_FILE`: the file to use for STDIN instead of the contents of this file.
- `FLAGS`: additional flags to pass to the executable
- `ARGS`: additional args to pass to the executable
- `ENV`: environment variables to set, separated by spaces
- `ERROR`: the expected return value from the executable, defaults to 0
- `SLOW`: if defined, this test's timeout is doubled.
Expand Down
2 changes: 1 addition & 1 deletion test/binary/bad-logging-basic.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-gen-wasm-interp
;;; FLAGS: -v
;;; ARGS: -v
;;; ERROR: 1
magic
version
Expand Down
2 changes: 1 addition & 1 deletion test/binary/bad-opcode-prefix.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-gen-wasm
;;; FLAGS: --objdump
;;; ARGS: --objdump
;;; ERROR: 1
magic
version
Expand Down
2 changes: 1 addition & 1 deletion test/binary/bad-opcode.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-gen-wasm
;;; FLAGS: --objdump
;;; ARGS: --objdump
;;; ERROR: 1
magic
version
Expand Down
2 changes: 1 addition & 1 deletion test/binary/linking-section.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-gen-wasm
;;; FLAGS: --objdump
;;; ARGS: --objdump
magic
version
section("linking") {
Expand Down
2 changes: 1 addition & 1 deletion test/binary/no-names.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-gen-wasm
;;; FLAGS: --no-debug-names
;;; ARGS: --no-debug-names
magic
version
section(TYPE) { count[1] function params[0] results[1] i32 }
Expand Down
2 changes: 1 addition & 1 deletion test/binary/user-section.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-gen-wasm
;;; FLAGS: -v
;;; ARGS: -v
magic
version
section("foo") { count[4] }
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/fold-catch.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions --fold-expr
;;; ARGS: --enable-exceptions --fold-expr
(module
(except $ex i32)
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/fold-export-throw.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions --fold-exprs
;;; ARGS: --enable-exceptions --fold-exprs
(module
(except $ex i32)
(export "except" (except $ex))
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/fold-try-as-argument.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions --fold-expr
;;; ARGS: --enable-exceptions --fold-expr
(module
(except $ex i32)
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/fold-try.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions --fold-expr
;;; ARGS: --enable-exceptions --fold-expr
(module
(except $ex i32)
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/try-exports.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions
;;; ARGS: --enable-exceptions
(module
(except $ex i32)
(export "except" (except $ex))
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/try-import.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions
;;; ARGS: --enable-exceptions
(module
(import "c++" "except" (except $ex i32))
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/desugar/try.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: wat-desugar
;;; FLAGS: --enable-exceptions
;;; ARGS: --enable-exceptions
(module
(except $ex i32)
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/atomic.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: --enable-threads
;;; ARGS: --enable-threads

(module
(memory 1 1 shared)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/bad-version-logging.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; ERROR: 1
;;; TOOL: run-objdump
;;; FLAGS: --gen-wasm --dump-debug
;;; ARGS: --gen-wasm --dump-debug
magic
0xe 0 0 0
(;; STDERR ;;;
Expand Down
2 changes: 1 addition & 1 deletion test/dump/bad-version.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
;;; ERROR: 1
;;; TOOL: run-objdump
;;; FLAGS: --gen-wasm
;;; ARGS: --gen-wasm
magic
0xe 0 0 0
(;; STDERR ;;;
Expand Down
2 changes: 1 addition & 1 deletion test/dump/basic.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v --headers
;;; ARGS: -v --headers
(module
(memory 1)
(func $f (param i32 i32) (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/binary.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
i32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/block-257-exprs-br.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block $foo
Expand Down
2 changes: 1 addition & 1 deletion test/dump/block-257-exprs.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block
Expand Down
2 changes: 1 addition & 1 deletion test/dump/block.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block
Expand Down
2 changes: 1 addition & 1 deletion test/dump/br-block-named.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block $outer ;; 3
Expand Down
2 changes: 1 addition & 1 deletion test/dump/br-block.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func ;; depth
block $outer ;; 4
Expand Down
2 changes: 1 addition & 1 deletion test/dump/br-loop-inner-expr.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func (result i32)
block $exit (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/br-loop-inner.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
(block $exit (loop $cont
Expand Down
2 changes: 1 addition & 1 deletion test/dump/br-loop.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
loop $cont
Expand Down
2 changes: 1 addition & 1 deletion test/dump/brif-loop.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
loop $cont
Expand Down
2 changes: 1 addition & 1 deletion test/dump/brif.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block $foo
Expand Down
2 changes: 1 addition & 1 deletion test/dump/brtable-empty.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block
Expand Down
2 changes: 1 addition & 1 deletion test/dump/brtable.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
block
Expand Down
2 changes: 1 addition & 1 deletion test/dump/call.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func (param i32)
i32.const 1
Expand Down
2 changes: 1 addition & 1 deletion test/dump/callimport.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(import "foo" "bar" (func (param i32 f32) (result i32)))
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/callindirect.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(type $t (func (param i32)))
(func $f (type $t)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/cast.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
i32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/compare.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
i32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/const.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
i32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/convert-sat.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v --enable-saturating-float-to-int
;;; ARGS: -v --enable-saturating-float-to-int
(module
(func
f32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/convert.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
i32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/current-memory.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(memory 1)
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/debug-import-names.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: --headers -v --debug-names --dump-verbose
;;; ARGS: --headers -v --debug-names --dump-verbose
(module
(import "bar" "foo" (func $foo)))
(;; STDOUT ;;;
Expand Down
2 changes: 1 addition & 1 deletion test/dump/debug-names.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v --debug-names --dump-verbose
;;; ARGS: -v --debug-names --dump-verbose
(module
(func $F1 (param $F1P0 i32)
(local $F1L1 f32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/dedupe-sig.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(type (func (param i32) (result i64)))
(import "foo" "bar" (func (param i32) (result i64)))
Expand Down
2 changes: 1 addition & 1 deletion test/dump/drop.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
i32.const 0
Expand Down
2 changes: 1 addition & 1 deletion test/dump/export-multi.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func (nop))
(export "a" (func 0))
Expand Down
2 changes: 1 addition & 1 deletion test/dump/expr-br.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func (result i32)
block (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/expr-brif.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func (result i32)
block $exit (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/func-exported.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func)
(export "foo" (func 0)))
Expand Down
2 changes: 1 addition & 1 deletion test/dump/func-multi.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func)
(func)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/func-named.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func $my-func))
(;; STDOUT ;;;
Expand Down
2 changes: 1 addition & 1 deletion test/dump/getglobal.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(global i32 (i32.const 0))
(func (result i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/getlocal-param.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func (param i32 f32)
(local i64 f32 i32 f32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/getlocal.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
(local f64 f32 i64 i32 i32 f32 f64 i64)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/global.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v --dump-verbose
;;; ARGS: -v --dump-verbose
(module
(import "foo" "i32_global" (global i32))
(import "foo" "i64_global" (global i64))
Expand Down
2 changes: 1 addition & 1 deletion test/dump/grow-memory.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(memory 1 2)
(func (param i32)
Expand Down
2 changes: 1 addition & 1 deletion test/dump/hexfloat_f32.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
;;; TOOL: run-objdump
;;; FLAGS: -v
;;; ARGS: -v
(module
(func
f32.const 0x0p0
Expand Down
Loading

0 comments on commit c127077

Please sign in to comment.