radare2/test/new/db/cmd/cmd_eval

103 lines
1.2 KiB
Plaintext

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