tpm2_key_protector: Enable build for powerpc_ieee1275
[grub.git] / tests / grub_func_test.in
blob1fa3c435276e74206c4d4b3371ae9016163e573a
1 #! @BUILD_SHEBANG@
2 set -e
4 . "@builddir@/grub-core/modinfo.sh"
6 if [ ! -e "@builddir@/"unicode.pf2 ]; then
7   echo "Functional test requires grub-mkfont support"
8   exit 99
9 fi
11 case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
12     # PLATFORM: Max RAM is 256M
13     mips-qemu_mips | mipsel-qemu_mips)
14         mem=256M;;
15     loongarch64-efi)
16         mem=3G;;
17     *)
18         mem=512M;;
19 esac
21 # Increase memory as some of tests are high-resolution and need a lot of memory.
22 out=`echo all_functional_test | @builddir@/grub-shell --timeout=3600 --files="/boot/grub/fonts/unicode.pf2"="@builddir@/"unicode.pf2 --qemu-opts="-m $mem"`
24 if [ "$(echo "$out" | tail -n 1)" != "ALL TESTS PASSED" ]; then
25   echo "Functional test failure: $out"
26   exit 1