radare2/test/new/db/cmd/feat_arroba

109 lines
1.3 KiB
Plaintext

NAME=@ addr
FILE=--
EXPECT=<<EOF
0x42
EOF
CMDS=<<EOF
s 0
s @ 0x42
EOF
RUN
NAME=@e:
FILE=-
EXPECT=<<EOF
1
EOF
CMDS=<<EOF
e scr.color=false
e scr.color @e:scr.color=true
EOF
RUN
NAME=@a:
FILE=-
EXPECT=<<EOF
arm
EOF
CMDS=<<EOF
e asm.arch=x86
e asm.arch @a:arm
EOF
RUN
NAME=@e: @ addr
FILE=-
EXPECT=<<EOF
1
0x1337
EOF
CMDS=<<EOF
e scr.color=false
s 0
e scr.color @e:scr.color=true @ 0x1337
s @e:scr.color=true @ 0x1337
EOF
RUN
NAME=@ addr @e
FILE=-
EXPECT=<<EOF
0
1
0x42
0x1337
EOF
CMDS=<<EOF
e scr.color @ 0x42 @e:scr.color=false
e scr.color @ 0x1337 @e:scr.color=true
s @ 0x42 @e:scr.color=false
s @ 0x1337 @e:scr.color=true
EOF
RUN
NAME=@a: @ addr @e:
FILE=-
EXPECT=<<EOF
x86
arm
0x42
0x1337
0
1
EOF
CMDS=<<EOF
e asm.arch @a:x86 @ 0x42 @e:scr.color=false
e asm.arch @a:arm @ 0x1337 @e:scr.color=true
s @a:x86 @ 0x42 @e:scr.color=false
s @a:arm @ 0x1337 @e:scr.color=true
e scr.color @a:x86 @ 0x42 @e:scr.color=false
e scr.color @a:arm @ 0x1337 @e:scr.color=true
EOF
RUN
NAME=@e:a=b,c=d with a==c
FILE=-
EXPECT=<<EOF
true
false
EOF
CMDS=<<EOF
e asm.pseudo=false
e asm.pseudo @e:asm.pseudo=true,asm.pseudo=true
e asm.pseudo
EOF
RUN
NAME=@e:a=b @e:c=d with a==c
FILE=-
EXPECT=<<EOF
true
false
EOF
CMDS=<<EOF
e asm.pseudo=false
e asm.pseudo @e:asm.pseudo=true @e:asm.pseudo=true
e asm.pseudo
EOF
RUN