2017-01-23 00:47:13 +00:00
|
|
|
#! /bin/sh
|
2013-05-02 12:39:03 +00:00
|
|
|
set -e
|
|
|
|
|
|
|
|
. "@builddir@/grub-core/modinfo.sh"
|
|
|
|
|
2013-11-18 16:42:54 +00:00
|
|
|
case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
|
|
|
|
# PLATFORM: Max RAM is 256M
|
|
|
|
mips-qemu_mips | mipsel-qemu_mips)
|
|
|
|
mem=256M;;
|
|
|
|
*)
|
|
|
|
mem=512M;;
|
|
|
|
esac
|
|
|
|
|
2013-11-11 23:44:00 +00:00
|
|
|
# Increase memory as some of tests are high-resolution and need a lot of memory.
|
2013-11-18 16:42:54 +00:00
|
|
|
out=`echo all_functional_test | @builddir@/grub-shell --timeout=3600 --files="/boot/grub/fonts/unicode.pf2"="@builddir@/"unicode.pf2 --qemu-opts="-m $mem"`
|
2013-05-02 12:39:03 +00:00
|
|
|
|
|
|
|
if [ "$(echo "$out" | tail -n 1)" != "ALL TESTS PASSED" ]; then
|
|
|
|
echo "Functional test failure: $out"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|