radare2/test/new/db/cmd/egg
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

50 lines
1.1 KiB
Plaintext

# XXX its green on mac, but it's os-specific test and will fail on travis
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
48c7c00300000050488b3c2448c7c0060000020f054883c408ccc3
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
48c7c00300000050488b3c2448c7c0030000000f054883c408ccc3
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
6a038b1c24b806000000cd8083c404ccc3
EOF
RUN