From bb2b275b7d5a1214ead1bea718d93ad9934b59d8 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 18 Nov 2013 17:42:54 +0100 Subject: [PATCH] * tests/grub_func_test.in: Decrease RAM size to 512M. With less fragmentation 512M is enough. --- ChangeLog | 5 +++++ tests/grub_func_test.in | 10 +++++++++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6b66c8e51..8978c7f46 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2013-11-18 Vladimir Serbinenko + + * tests/grub_func_test.in: Decrease RAM size to 512M. With less + fragmentation 512M is enough. + 2013-11-18 Vladimir Serbinenko * grub-core/kern/mm.c (grub_real_malloc): Decrease cut-off of moving the diff --git a/tests/grub_func_test.in b/tests/grub_func_test.in index cfb200cf9..c8cc26376 100644 --- a/tests/grub_func_test.in +++ b/tests/grub_func_test.in @@ -3,8 +3,16 @@ 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 1G"` +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" -- 2.47.2