rizin/test/db/cmd/feat_cmdsubst
2021-03-09 08:06:32 +01:00

37 lines
453 B
Text

NAME=cmd substitution
FILE=malloc://1024
CMDS=<<EOF
?v $(?e 10)0
EOF
EXPECT=<<EOF
0x64
EOF
RUN
NAME=cmd substitution in @@s:
FILE=malloc://1024
CMDS=<<EOF
s @@s:0x10 $(?e 0x20 4)
EOF
EXPECT=<<EOF
0x10
0x14
0x18
0x1c
EOF
RUN
NAME=cmd substitution in @@s:
FILE=malloc://1024
CMDS=<<EOF
wx 9091909190919090909090
/x 90 @(2 6)
/x 90 @($(?e 0 4))
EOF
EXPECT=<<EOF
0x00000002 hit0_0 90
0x00000004 hit0_1 90
0x00000000 hit1_0 90
0x00000002 hit1_1 90
EOF
RUN