summaryrefslogtreecommitdiffstats
path: root/tests/hfsplus_test.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/hfsplus_test.in')
-rw-r--r--tests/hfsplus_test.in20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/hfsplus_test.in b/tests/hfsplus_test.in
new file mode 100644
index 0000000..85f1c37
--- /dev/null
+++ b/tests/hfsplus_test.in
@@ -0,0 +1,20 @@
+#!@BUILD_SHEBANG@
+
+set -e
+
+if [ "x$EUID" = "x" ] ; then
+ EUID=`id -u`
+fi
+
+if [ "$EUID" != 0 ] ; then
+ exit 77
+fi
+
+if ! which mkfs.hfsplus >/dev/null 2>&1; then
+ echo "mkfs.hfsplus not installed; cannot test hfsplus."
+ exit 77
+fi
+
+"@builddir@/grub-fs-tester" hfsplus
+"@builddir@/grub-fs-tester" hfsplus_casesens
+"@builddir@/grub-fs-tester" hfsplus_wrap