grub/tests/hfs_test.in
Glenn Washburn 50a2a03905 tests: Skip HFS test only when mac_roman module is not loaded and not loadable
Allow the HFS tests to not be skipped if the mac_roman modules is loaded in
the kernel, but not accessible to modprobe.

Signed-off-by: Glenn Washburn <development@efficientek.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
2021-10-14 15:31:33 +02:00

24 lines
388 B
Plaintext

#!@BUILD_SHEBANG@
set -e
if [ "x$EUID" = "x" ] ; then
EUID=`id -u`
fi
if [ "$EUID" != 0 ] ; then
exit 77
fi
if ! which mkfs.hfs >/dev/null 2>&1; then
echo "mkfs.hfs not installed; cannot test HFS."
exit 77
fi
if ! grep -q mac_roman /proc/modules && ! modprobe mac_roman; then
echo "no mac-roman support; cannot test HFS."
exit 77
fi
"@builddir@/grub-fs-tester" hfs