minixfs_test.in 753 B

123456789101112131415161718192021222324252627282930313233343536
  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 77
  8. fi
  9. if ! which mkfs.minix >/dev/null 2>&1; then
  10. echo "mkfs.minix not installed; cannot test minixfs."
  11. exit 77
  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 77
  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 77
  20. fi
  21. if ! mkfs.minix -h | grep -- -B > /dev/null; then
  22. echo "mkfs.minix doesn't support variable block size; cannot test minix*fs."
  23. exit 77
  24. fi
  25. "@builddir@/grub-fs-tester" minix
  26. "@builddir@/grub-fs-tester" minix2
  27. "@builddir@/grub-fs-tester" minix3