summaryrefslogtreecommitdiffstats
path: root/tests/hfs_test.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hfs_test.in')
-rw-r--r--tests/hfs_test.in23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/hfs_test.in b/tests/hfs_test.in
new file mode 100644
index 0000000..d7ec56b
--- /dev/null
+++ b/tests/hfs_test.in
@@ -0,0 +1,23 @@
+#!@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 ! modprobe mac-roman; then
+ echo "no mac-roman support; cannot test HFS."
+ exit 77
+fi
+
+"@builddir@/grub-fs-tester" hfs