123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #! /bin/sh
- set -x
- bin/M2-Planet --architecture x86 -f test/test0000/return.c \
- -o test/test0000/return.M1 || exit 1
- M1 -f test/common_x86/x86_defs.M1 \
- -f test/common_x86/libc-core.M1 \
- -f test/test0000/return.M1 \
- --LittleEndian \
- --architecture x86 \
- -o test/test0000/return.hex2 || exit 2
- hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0000/return.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0000-x86-binary --exec_enable || exit 3
- if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ]
- then
-
- ./test/results/test0000-x86-binary
- [ 42 = $? ] || exit 3
- fi
- exit 0
|