123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #! /bin/sh
- set -x
- bin/M2-Planet --architecture aarch64 \
- -f test/common_aarch64/functions/putchar.c \
- -f test/common_aarch64/functions/exit.c \
- -f test/common_aarch64/functions/malloc.c \
- -f test/test0008/struct.c \
- -o test/test0008/struct.M1 || exit 1
- M1 -f test/common_aarch64/aarch64_defs.M1 \
- -f test/common_aarch64/libc-core.M1 \
- -f test/test0008/struct.M1 \
- --LittleEndian \
- --architecture aarch64 \
- -o test/test0008/struct.hex2 || exit 2
- hex2 -f test/common_aarch64/ELF-aarch64.hex2 \
- -f test/test0008/struct.hex2 \
- --LittleEndian \
- --architecture aarch64 \
- --BaseAddress 0x400000 \
- -o test/results/test0008-aarch64-binary \
- --exec_enable || exit 3
- if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "aarch64" ]
- then
-
- out=$(./test/results/test0008-aarch64-binary 2>&1 )
- [ 32 = $? ] || exit 4
- [ "$out" = "35419896642975313541989657891634" ] || exit 5
- fi
- exit 0
|