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>
71 lines
906 B
Plaintext
71 lines
906 B
Plaintext
NAME=t/basic
|
|
FILE=malloc://1024
|
|
CMDS=<<EOF
|
|
w test
|
|
w test@333
|
|
w test@666
|
|
?e
|
|
e search.in=block
|
|
b 777
|
|
/ test
|
|
EOF
|
|
EXPECT=<<EOF
|
|
|
|
0x00000000 hit0_0 "test"
|
|
0x0000014d hit0_1 "test"
|
|
0x0000029a hit0_2 "test"
|
|
EOF
|
|
RUN
|
|
|
|
NAME=t/basic
|
|
FILE=../bins/elf/analysis/x86-helloworld-gcc
|
|
CMDS=<<EOF
|
|
b 0x100
|
|
e search.from = 0x08048301
|
|
e search.to = 0x8048390
|
|
/x b4960408ffd0c9c3
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x08048362 hit0_0 b4960408ffd0c9c3
|
|
EOF
|
|
RUN
|
|
|
|
NAME=t/basic
|
|
FILE=../bins/elf/analysis/x86-helloworld-gcc
|
|
CMDS=<<EOF
|
|
b 100
|
|
e search.from = 0x08048301
|
|
e search.to = 0x8048390
|
|
/x b4960408ffd0c9c3
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x08048362 hit0_0 b4960408ffd0c9c3
|
|
EOF
|
|
RUN
|
|
|
|
NAME=overlap0
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
w AAAA
|
|
/x 4141
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 hit0_0 4141
|
|
0x00000002 hit0_1 4141
|
|
EOF
|
|
RUN
|
|
|
|
NAME=overlap1
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
e search.overlap=true
|
|
w AAAA
|
|
/x 4141
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 hit0_0 4141
|
|
0x00000001 hit0_1 4141
|
|
0x00000002 hit0_2 4141
|
|
EOF
|
|
RUN
|