mirror of
https://github.com/radareorg/radare2.git
synced 2024-11-28 07:30:33 +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>
100 lines
1.1 KiB
Plaintext
100 lines
1.1 KiB
Plaintext
NAME=Cvb variable null pointer deref
|
|
FILE=../bins/elf/analysis/x64-simple
|
|
CMDS=<<EOF
|
|
aaa
|
|
Cvb local_10
|
|
EOF
|
|
EXPECT=<<EOF
|
|
EOF
|
|
RUN
|
|
|
|
NAME=CL FAIL if no file
|
|
BROKEN=1
|
|
FILE=--
|
|
CMDS=<<EOF
|
|
CL $$ foo
|
|
CL.
|
|
EOF
|
|
EXPECT=<<EOF
|
|
foo
|
|
EOF
|
|
RUN
|
|
|
|
NAME=CL FAIL if no rbinfile
|
|
BROKEN=1
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
CL $$ foo
|
|
CL.
|
|
EOF
|
|
EXPECT=<<EOF
|
|
foo
|
|
EOF
|
|
RUN
|
|
|
|
NAME=CL base64
|
|
FILE=../bins/elf/arg
|
|
CMDS=<<EOF
|
|
CL $$ base64:SEVMTE8gV09STEQ=
|
|
CL*
|
|
EOF
|
|
EXPECT=<<EOF
|
|
HELLO WORLD
|
|
EOF
|
|
RUN
|
|
|
|
NAME=CC.
|
|
FILE=-
|
|
CMDS=<<EOF
|
|
CC hello @ 10
|
|
CC.
|
|
CC.10
|
|
CC.@10
|
|
CC@10
|
|
EOF
|
|
EXPECT=<<EOF
|
|
hello
|
|
hello
|
|
0x0000000a CCu "hello"
|
|
EOF
|
|
RUN
|
|
|
|
NAME=CL add
|
|
FILE=-
|
|
BROKEN=1
|
|
CMDS=<<EOF
|
|
CL $$ foo.c:123
|
|
e asm.lines=0
|
|
e asm.flags=0
|
|
e asm.dwarf=1
|
|
e asm.cmt.col=20
|
|
CC-*
|
|
pd 1
|
|
CL-*
|
|
pd 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x00000000 0000 add byte [rax], al ; foo:123
|
|
0x00000000 0000 add byte [rax], al
|
|
EOF
|
|
RUN
|
|
|
|
NAME=CL add ok
|
|
FILE=../bins/elf/hello.ppc
|
|
CMDS=<<EOF
|
|
CL $$ foo.c:123
|
|
e asm.lines=0
|
|
e asm.flags=0
|
|
e asm.dwarf=1
|
|
e asm.cmt.col=20
|
|
CC-*
|
|
pd 1
|
|
CL-*
|
|
pd 1
|
|
EOF
|
|
EXPECT=<<EOF
|
|
0x10000308 7c290b78 mr r9, r1 ; foo.c:123
|
|
0x10000308 7c290b78 mr r9, r1
|
|
EOF
|
|
RUN
|