summaryrefslogtreecommitdiffstats
path: root/tests/ntfs_test.in
blob: 9eb7b01f66e923009939abf7b839276a15fa67a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!@BUILD_SHEBANG@

set -e

if [ "x$EUID" = "x" ] ; then
  EUID=`id -u`
fi

if [ "$EUID" != 0 ] ; then
   exit 77
fi

if ! which mkfs.ntfs >/dev/null 2>&1; then
   echo "mkfs.ntfs not installed; cannot test ntfs."
   exit 77
fi

if ! which setfattr >/dev/null 2>&1; then
   echo "setfattr not installed; cannot test ntfs."
   exit 77
fi

"@builddir@/grub-fs-tester" ntfs
"@builddir@/grub-fs-tester" ntfscomp