rizin/test/db/cmd/spaces
Anton Kochkov 39613b5c16
Port C (metainformation) commands to the rzshell (#1752)
* Do not escape strings during the search
* Port `C` (metainformation) commands to the rzshell
* Improve string autodetection
* Remove `Cr` and RZ_META_TYPE_RUN
* Escape `\x1b` as `\e` character in strings
* Move string encoding options to `RzStrEncOptions` struct
* Add `esc_double_quotes` option to `RzStrEncOptions`
* Do not filter out unprintable characters for uppercase check
* Use `esc_double_quotes` when printing the string between '"' in disasm
* Use signed chars on all platforms/architectures

Co-authored-by: Riccardo Schirone <sirmy15@gmail.com>
2021-10-15 16:48:18 +08:00

37 lines
380 B
Text

NAME=comment spaces
BROKEN=1
FILE=--
CMDS=<<EOF
CS one
CC foo
CS two
CC bar @ 1
CC cow @ 2
CCl
CSl
EOF
EXPECT=<<EOF
0x00000001 CCu "bar"
0x00000002 CCu "cow"
0 1 . one
1 2 * two
EOF
RUN
NAME=select all meta spaces
FILE=--
CMDS=<<EOF
CS one
CC foo
CS two
CC bar @ 1
CC cow @ 2
CS *
CCl
EOF
EXPECT=<<EOF
0x00000000 CCu "foo"
0x00000001 CCu "bar"
0x00000002 CCu "cow"
EOF
RUN