radare2/test/new/db/cmd/cmd_yank
Khairul Azhar Kasmiran 781fcccf55
Move CMDS= before EXPECT= in tests (#16417)
* Move CMDS= before EXPECT= in tests

* Revert "Move CMDS= before EXPECT= in tests"

This reverts commit 13a9085a36.

* Move CMDS= before EXPECT= in tests, take 2

* Revert "Move CMDS= before EXPECT= in tests, take 2"

This reverts commit 7c0bf6d8e3.

* Move CMDS= before EXPECT= in tests, take 3

Co-authored-by: pancake <pancake@nopcode.org>
2020-04-05 20:56:06 +08:00

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