radare2/test/db/cmd/egg
2022-11-14 01:31:49 +01:00

53 lines
1.3 KiB
Plaintext

# XXX its green on mac, but it's os-specific test and will fail on the CI
NAME=ragg2 eggtest.c
BROKEN=1
FILE=-
CMDS=!ragg2 bins/src/eggtest.c
EXPECT=<<EOF
rabin2 -o 'bins/src/eggtest.c.text' -O d/S/'0..__text' 'bins/src/eggtest.c.o'
e900000000662e0f1f8400000000009050c744240400000000bf01000000488d3543000000ba06000000e80000000031d289042489d059c30f1f840000000000897c24fc48897424f0895424ec8b7c24fc488b7424f048634424ec48894424d8ba0400000289d0488b5424d80f0548894424e0488b4424e089c1894c24d48b4424d4c348656c6c6f0a00
EOF
RUN
NAME=egg: darwin-x86-64 syscall close
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=64
e asm.assembler=x86.nz
e asm.arch=x86
e asm.os=darwin
gs close 3
EOF
EXPECT=<<EOF
554889e54881ec0008000048c7c00300000050488b3c2448c7c0060000020f054883c408cc4881c4000800005dc3
EOF
RUN
NAME=egg: linux-x86-64 syscall close
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=64
e asm.assembler=x86.nz
e asm.arch=x86
e asm.os=linux
gs close 3
EOF
EXPECT=<<EOF
554889e54881ec0008000048c7c00300000050488b3c2448c7c0030000000f054883c408cc4881c4000800005dc3
EOF
RUN
NAME=egg: linux-x86-32 syscall close
FILE=malloc://1024
CMDS=<<EOF
e asm.bits=32
e asm.assembler=x86.nz
e asm.arch=x86
e asm.os=linux
gs close 3
EOF
EXPECT=<<EOF
5589e581ec000800006a038b1c24b806000000cd8083c404cc81c4000800005dc3
EOF
RUN