ext234_test.in 667 B

12345678910111213141516171819202122232425262728293031323334
  1. #!@BUILD_SHEBANG@
  2. set -e
  3. if [ "x$EUID" = "x" ] ; then
  4. EUID=`id -u`
  5. fi
  6. if [ "$EUID" != 0 ] ; then
  7. exit 99
  8. fi
  9. if ! which mkfs.ext2 >/dev/null 2>&1; then
  10. echo "mkfs.ext2 not installed; cannot test ext2."
  11. exit 99
  12. fi
  13. if ! which mkfs.ext3 >/dev/null 2>&1; then
  14. echo "mkfs.ext3 not installed; cannot test ext3."
  15. exit 99
  16. fi
  17. if ! which mkfs.ext4 >/dev/null 2>&1; then
  18. echo "mkfs.ext4 not installed; cannot test ext4."
  19. exit 99
  20. fi
  21. "@builddir@/grub-fs-tester" ext2_old
  22. "@builddir@/grub-fs-tester" ext2
  23. "@builddir@/grub-fs-tester" ext3
  24. "@builddir@/grub-fs-tester" ext4
  25. "@builddir@/grub-fs-tester" ext4_metabg
  26. "@builddir@/grub-fs-tester" ext4_encrypt