rizin/test/db/cmd/cmd_wox
Riccardo Schirone d20b026ce2
Finish conversion of w commands to rzshell (#2412)
* Convert 'wz' to rzshell
* Remove 'wt' commands in favour of > operator
* Convert 'ww' command to rzshell
* Convert 'wm' command to rzshell
* Convert 'wd' command to rzshell
* Convert 'wu' command to rzshell
* Convert 'wo' commands to rzshell
* Fix 'w' tests
2022-03-16 11:20:29 +00:00

222 lines
2.6 KiB
Text
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

NAME=wox le 8-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xab@!10
p8 14
EOF
EXPECT=<<EOF
c3cec7c7c4dcc4d9c7cf00000000
EOF
RUN
NAME=wox le 16-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcd@!10
p8 14
EOF
EXPECT=<<EOF
c3a8c7a1c4bac4bfc7a900000000
EOF
RUN
NAME=wox le 24-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcdef@!10
ps 14
EOF
EXPECT=<<EOF
è\x83Ǣ\x98Ŀ\x83\xcf\x00\x00\x00\x00
EOF
RUN
NAME=wox le 32-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcdef01@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836dc4ba8073c7a900000000
EOF
RUN
NAME=wox le 40-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcdef0102@!10
ps 14
EOF
EXPECT=<<EOF
è\x83mmܢ\x9dmf\x00\x00\x00\x00
EOF
RUN
NAME=wox le 48-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcdef010203@!10
ps 14
EOF
EXPECT=<<EOF
è\x83mmtĿ\x83e\x00\x00\x00\x00
EOF
RUN
NAME=wox le 56-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcdef01020304@!10
ps 14
EOF
EXPECT=<<EOF
è\x83mmtk١\x8b\x00\x00\x00\x00
EOF
RUN
NAME=wox le 64-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=false
w helloworld
wox 0xabcdef0102030405@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836d6d746b77c7a900000000
EOF
RUN
NAME=wox be 8-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xab@!10
p8 14
EOF
EXPECT=<<EOF
c3cec7c7c4dcc4d9c7cf00000000
EOF
RUN
NAME=wox be 16-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcd@!10
p8 14
EOF
EXPECT=<<EOF
c3a8c7a1c4bac4bfc7a900000000
EOF
RUN
NAME=wox be 24-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcdef@!10
p8 14
EOF
EXPECT=<<EOF
c3a883c7a298c4bf83cf00000000
EOF
RUN
NAME=wox be 32-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcdef01@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836dc4ba8073c7a900000000
EOF
RUN
NAME=wox be 40-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcdef0102@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836d6ddca29d6d6600000000
EOF
RUN
NAME=wox be 48-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcdef010203@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836d6d74c4bf836500000000
EOF
RUN
NAME=wox be 56-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcdef01020304@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836d6d746bd9a18b00000000
EOF
RUN
NAME=wox be 64-bit
FILE==
CMDS=<<EOF
e cfg.bigendian=true
w helloworld
wox 0xabcdef0102030405@!10
p8 14
EOF
EXPECT=<<EOF
c3a8836d6d746b77c7a900000000
EOF
RUN
NAME=wo2 on woe
FILE==
CMDS=<<EOF
b 32
woe 0 255
wo2
e hex.header=false
px
EOF
EXPECT=<<EOF
0x00000000 0100 0302 0504 0706 0908 0b0a 0d0c 0f0e ................
0x00000010 1110 1312 1514 1716 1918 1b1a 1d1c 1f1e ................
EOF
RUN