radare2/test/db/cmd/egg
Lazula 90ce9c795e
Fix dd command and update tests accordingly ##debug
* Add quotes around filename for dd command
* Account for string argument size in r_core_syscall()
* Fix command comments for dd
* Use a constant static stack size in r_core_syscall()
* Allow passing an address of the filename in memory for dd
* Change consumeBuffer() to print_buffer_hex()
* Improve dsue error message
* Update egg tests
* buf ownership is transferred to egg, dont free
2022-03-09 10:20:49 +01:00

50 lines
1.2 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.arch=x86
e asm.bits=64
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.arch=x86
e asm.bits=64
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.arch=x86
e asm.bits=32
e asm.os=linux
gs close 3
EOF
EXPECT=<<EOF
5589e581ec000800006a038b1c24b806000000cd8083c404cc81c4000800005dc3
EOF
RUN