12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- #! /bin/sh
- set -ex
- bin/M2-Planet --architecture armv7l -f test/common_armv7l/functions/putchar.c \
- -f test/common_armv7l/functions/exit.c \
- -f test/test0011/break-do.c \
- -o test/test0011/break-do.M1 || exit 1
- M1 -f test/common_armv7l/armv7l_defs.M1 \
- -f test/common_armv7l/libc-core.M1 \
- -f test/test0011/break-do.M1 \
- --LittleEndian \
- --architecture armv7l \
- -o test/test0011/break-do.hex2 || exit 2
- hex2 -f test/common_armv7l/ELF-armv7l.hex2 -f test/test0011/break-do.hex2 --LittleEndian --architecture armv7l --BaseAddress 0x10000 -o test/results/test0011-armv7l-binary --exec_enable || exit 3
- if [ "$(get_machine ${GET_MACHINE_FLAGS})" = "armv7l" ]
- then
- . ./sha256.sh
-
- ./test/results/test0011-armv7l-binary >| test/test0011/proof || exit 4
- out=$(sha256_check test/test0011/proof.answer)
- [ "$out" = "test/test0011/proof: OK" ] || exit 5
- fi
- exit 0
|