grub_func_test.in 588 B

12345678910111213141516171819202122
  1. #! @BUILD_SHEBANG@
  2. set -e
  3. . "@builddir@/grub-core/modinfo.sh"
  4. case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
  5. # PLATFORM: Max RAM is 256M
  6. mips-qemu_mips | mipsel-qemu_mips)
  7. mem=256M;;
  8. *)
  9. mem=512M;;
  10. esac
  11. # Increase memory as some of tests are high-resolution and need a lot of memory.
  12. out=`echo all_functional_test | @builddir@/grub-shell --timeout=3600 --files="/boot/grub/fonts/unicode.pf2"="@builddir@/"unicode.pf2 --qemu-opts="-m $mem"`
  13. if [ "$(echo "$out" | tail -n 1)" != "ALL TESTS PASSED" ]; then
  14. echo "Functional test failure: $out"
  15. exit 1
  16. fi