radare2/test/db/cmd/cmd_eval

107 lines
1.3 KiB
Plaintext

NAME=et
FILE=-
CMDS=<<EOF
et asm.slow
et asm.bits
et asm.arch
et search.from
EOF
EXPECT=<<EOF
bool
int
str
addr
EOF
RUN
NAME=e-dot
FILE=-
CMDS=e zoom.
EXPECT=<<EOF
zoom.byte = h
zoom.from = 0
zoom.in = io.map
zoom.maxsz = 512
zoom.to = 0
EOF
RUN
NAME=e anal.gp(mips)
FILE=bins/elf/analysis/mips64r2-cc1
CMDS=e anal.gp
EXPECT=<<EOF
0x1213a5940
EOF
RUN
NAME=e asm.os
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=e asm.os=?
EXPECT=<<EOF
ios
dos
darwin
linux
freebsd
openbsd
netbsd
windows
s110
EOF
RUN
NAME=e asm.cpu
FILE=bins/elf/analysis/hello-linux-x86_64
CMDS=<<EOF
e asm.arch=mips
e asm.cpu=?
EOF
EXPECT=<<EOF
mips32/64
micro
r6
v3
v2
EOF
RUN
NAME=e asm.syntax
FILE=-
CMDS=<<EOF
wx eb0e
e asm.arch=x86
e asm.syntax=masm
pi 1
EOF
EXPECT=<<EOF
jmp 10h
EOF
RUN
NAME=multiple assignments
FILE=-
CMDS=<<EOF
"e scr.highlight= scr.highlight.grep =scr.rainbow =true "
e scr.highlight
e scr.highlight.grep
e scr.rainbow
EOF
EXPECT=<<EOF
scr.highlight.grep =scr.rainbow =true
false
false
EOF
RUN
NAME=multiple assignments with quotes
CMDS=<<EOF
e cmd.prompt = scr.highlight = "e cmd.prompt = "e scr.highlight = cmd.prompt ="e scr.rainbow = true """
e cmd.prompt
e scr.highlight
EOF
EXPECT=<<EOF
scr.highlight = "e cmd.prompt = "e scr.highlight = cmd.prompt ="e scr.rainbow = true """
EOF
RUN