rizin/test/db/cmd/cmd_pg
Aswin C 6c7d508c9e
Convert pg commands to newshell (#1152)
* Use `RZ_CMD_ARG_TYPE_FILE` in all the `dir` tags for `dts`
* Convert `pg` commands to newshell
* Add cmd_print.yaml to the corresponding meson.build
* Add tests for `pgm`, `pg*` and `pg-*`
* Run cmd_descs_generate.py and update cmd_descs.c
2021-05-24 12:59:48 +08:00

28 lines
No EOL
304 B
Text

NAME=test pg* and pg-* print gadgets
FILE=--
CMDS=<<EOF
pg 10 10 10 10 s
pg 2 2 2 2 iE
pg*
pg-*
pg*
EOF
EXPECT=<<EOF
"pg 10 10 10 10 s"
"pg 2 2 2 2 iE"
EOF
RUN
NAME=test pgm move gadgets
FILE=--
CMDS=<<EOF
pg 10 10 10 10 s
pg*
pgm 0 5 5 5 5
pg*
EOF
EXPECT=<<EOF
"pg 10 10 10 10 s"
"pg 5 5 5 5 s"
EOF
RUN