radare2/test/new/db/cmd/bug_3788
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

46 lines
820 B
Plaintext

NAME=bug 3788 #1: search in virtual address
FILE=../bins/vsf/c64-rambo2-norom.vsf
CMDS=<<EOF
s 0
/x ac6c6c68
EOF
EXPECT=<<EOF
0x0000008a hit0_0 ac6c6c68
EOF
RUN
NAME=bug 3788 #2: search with multiple sections
FILE=../bins/vsf/c64-rambo2-rom.vsf
CMDS=<<EOF
s 0
e search.in=bin.sections
/x ac686b6d
EOF
EXPECT=<<EOF
0x0000008a hit0_0 ac686b6d
EOF
RUN
NAME=bug 3788 #3: cmd.hit
FILE=../bins/vsf/c64-rambo2-norom.vsf
CMDS=<<EOF
s 0
e cmd.hit = px 16
/x ac6c6c68
EOF
EXPECT=<<EOF
0x0000008a hit0_0 ac6c6c68
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x0000008a ac6c 6c68 6700 1200 0000 0000 0000 4b0f .llhg.........K.
EOF
RUN
NAME=bug 3788 #4: no collision in VA
FILE=../bins/nes/Pong.nes
CMDS=/x 8512a9208520
EXPECT=<<EOF
0x0000c020 hit0_0 8512a9208520
0x00008020 hit0_1 8512a9208520
EOF
RUN