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