radare2/test/new/db/cmd/cmd_afcl
Khairul Azhar Kasmiran 781fcccf55
Move CMDS= before EXPECT= in tests (#16417)
* Move CMDS= before EXPECT= in tests

* Revert "Move CMDS= before EXPECT= in tests"

This reverts commit 13a9085a36.

* Move CMDS= before EXPECT= in tests, take 2

* Revert "Move CMDS= before EXPECT= in tests, take 2"

This reverts commit 7c0bf6d8e3.

* Move CMDS= before EXPECT= in tests, take 3

Co-authored-by: pancake <pancake@nopcode.org>
2020-04-05 20:56:06 +08:00

159 lines
1.6 KiB
Plaintext

NAME=afcl: x86-64
FILE=--
CMDS=<<EOF
e asm.bits = 32
e asm.arch = x86
e asm.bits = 64
afcl
EOF
EXPECT=<<EOF
amd64
ms
swift
EOF
RUN
NAME=afcl: x86-64-override
FILE=/../bins/elf/true32
ARGS=-a x86 -b 64
BROKEN=1
CMDS=afcl
EXPECT=<<EOF
amd64
ms
EOF
RUN
NAME=afcl: x86-32
FILE=--
BROKEN=1
CMDS=<<EOF
e asm.bits = 64
e asm.arch = x86
e asm.bits = 32
afcl
EOF
EXPECT=<<EOF
pascal
optlink
stdcall
cdecl
fastcall
borland
watcom
EOF
RUN
NAME=afcl: x86-32-override
FILE=/../bins/elf/bomb
ARGS=-a x86 -b 32
BROKEN=1
CMDS=afcl
EXPECT=<<EOF
pascal
optlink
stdcall
cdecl
fastcall
borland
watcom
EOF
RUN
NAME=afcl: arm-64
FILE=--
CMDS=<<EOF
e asm.bits = 32
e asm.arch = arm
e asm.bits = 64
afcl
EOF
EXPECT=<<EOF
arm64
swift
EOF
RUN
NAME=afcl: arm-64-override
FILE=/../bins/elf/libmagic.so
ARGS=-a arm -b 64
BROKEN=1
CMDS=afcl
EXPECT=<<EOF
arm64
EOF
RUN
NAME=afcl: arm-32
FILE=--
BROKEN=1
CMDS=<<EOF
e asm.bits = 64
e asm.arch = arm
e asm.bits = 32
afcl
EOF
EXPECT=<<EOF
arm32
EOF
RUN
NAME=afcl: arm-32-override
FILE=/../bins/elf/libc.so.6
ARGS=-a arm -b 32
BROKEN=1
CMDS=afcl
EXPECT=<<EOF
arm32
EOF
RUN
NAME=afcl: arm-16
FILE=--
BROKEN=1
CMDS=<<EOF
e asm.bits = 64
e asm.arch = arm
e asm.bits = 16
afcl
EOF
EXPECT=<<EOF
arm32
EOF
RUN
NAME=afcl: arm-16-override
FILE=/../bins/elf/libmagic.so
ARGS=-a arm -b 16
BROKEN=1
CMDS=afcl
EXPECT=<<EOF
arm32
EOF
RUN
NAME=afcl: mips-32
FILE=--
CMDS=<<EOF
e asm.bits = 64
e asm.arch = mips
e asm.bits = 32
afcl
EOF
EXPECT=<<EOF
n32
o32
EOF
RUN
NAME=afcl: mips-32-override
FILE=../bins/elf/libc.so.0
ARGS=-a mips -b 64
CMDS=afcl
EXPECT=<<EOF
n32
o32
EOF
RUN