mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-24 05:40:10 +00:00
781fcccf55
* Move CMDS= before EXPECT= in tests * Revert "Move CMDS= before EXPECT= in tests" This reverts commit13a9085a36
. * Move CMDS= before EXPECT= in tests, take 2 * Revert "Move CMDS= before EXPECT= in tests, take 2" This reverts commit7c0bf6d8e3
. * Move CMDS= before EXPECT= in tests, take 3 Co-authored-by: pancake <pancake@nopcode.org>
61 lines
616 B
Plaintext
61 lines
616 B
Plaintext
NAME=y cat
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
w catty @0
|
|
pf z @0x0
|
|
yt 4 0x10
|
|
pf z @0x10
|
|
yp
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 = "catty"
|
|
0x00000010 = "catt"
|
|
catt
|
|
EOF
|
|
RUN
|
|
|
|
NAME=y, yx cat
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
w catty @0
|
|
pf z @0x0
|
|
yt 4 0x10
|
|
pf z @0x10
|
|
yx
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 = "catty"
|
|
0x00000010 = "catt"
|
|
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
|
|
0x00000000 6361 7474 catt
|
|
EOF
|
|
RUN
|
|
|
|
NAME=yz
|
|
FILE=malloc://128
|
|
CMDS=<<EOF
|
|
w HelloWorld @0
|
|
yz
|
|
yp
|
|
yz 5
|
|
yp
|
|
yz 4 @ 4
|
|
yp
|
|
yz @ 6
|
|
yp
|
|
yz 2 @ 6
|
|
yp
|
|
b 6
|
|
yz
|
|
yp
|
|
EOF
|
|
EXPECT=<<EOF
|
|
HelloWorld
|
|
Hello
|
|
oWor
|
|
orld
|
|
or
|
|
HelloW
|
|
EOF
|
|
RUN
|