| 123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #! /bin/sh
- set -x
- bin/M2-Planet --architecture x86 -f test/common_x86/functions/putchar.c \
- -f test/common_x86/functions/exit.c \
- -f test/test0004/call.c \
- -o test/test0004/call.M1 || exit 1
- M1 -f test/common_x86/x86_defs.M1 \
- -f test/common_x86/libc-core.M1 \
- -f test/test0004/call.M1 \
- --LittleEndian \
- --architecture x86 \
- -o test/test0004/call.hex2 || exit 2
- hex2 -f test/common_x86/ELF-i386.hex2 -f test/test0004/call.hex2 --LittleEndian --architecture x86 --BaseAddress 0x8048000 -o test/results/test0004-x86-binary --exec_enable || exit 3
- if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "x86" ]
- then
-
- out=$(./test/results/test0004-x86-binary 2>&1 )
- [ 42 = $? ] || exit 4
- [ "$out" = "Hello mes" ] || exit 5
- fi
- exit 0
|