minixfs_test.in 607 B

12345678910111213141516171819202122232425262728293031
  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.minix >/dev/null 2>&1; then
  10. echo "mkfs.minix not installed; cannot test minixfs."
  11. exit 99
  12. fi
  13. if ! mkfs.minix -h | grep -- -v > /dev/null; then
  14. echo "mkfs.minix doesn't support minix2fs; cannot test minix*fs."
  15. exit 99
  16. fi
  17. if ! mkfs.minix -h | grep -- -3 > /dev/null; then
  18. echo "mkfs.minix doesn't support minix3fs; cannot test minix*fs."
  19. exit 99
  20. fi
  21. "@builddir@/grub-fs-tester" minix
  22. "@builddir@/grub-fs-tester" minix2
  23. "@builddir@/grub-fs-tester" minix3