summaryrefslogtreecommitdiffstats
path: root/tests/grub_func_test.in
blob: c67f9e422534a402614eb280fe67d165fd0bb906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! @BUILD_SHEBANG@
set -e

. "@builddir@/grub-core/modinfo.sh"

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

# Increase memory as some of tests are high-resolution and need a lot of memory.
out=`echo all_functional_test | @builddir@/grub-shell --timeout=3600 --files="/boot/grub/fonts/unicode.pf2"="@builddir@/"unicode.pf2 --qemu-opts="-m $mem"`

if [ "$(echo "$out" | tail -n 1)" != "ALL TESTS PASSED" ]; then
  echo "Functional test failure: $out"
  exit 1
fi