summaryrefslogtreecommitdiff
path: root/testsuite/mount.tests
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/mount.tests')
-rwxr-xr-xtestsuite/mount.tests19
1 files changed, 12 insertions, 7 deletions
diff --git a/testsuite/mount.tests b/testsuite/mount.tests
index 043586f05..3c7405fbd 100755
--- a/testsuite/mount.tests
+++ b/testsuite/mount.tests
@@ -4,19 +4,24 @@
4 4
5. ./testing.sh 5. ./testing.sh
6 6
7test -f "$bindir/.config" && . "$bindir/.config"
8
7test "`id -u`" = 0 || { 9test "`id -u`" = 0 || {
8 echo "SKIPPED: must be root to test this" 10 echo "SKIPPED: mount (must be root to test this)"
9 exit 0 11 exit 0
10} 12}
11 13
12optional MKFS_MINIX 14if test x"$CONFIG_MKFS_MINIX" != x"y" \
13if [ -n "$SKIP" ] 15|| test x"$CONFIG_FEATURE_MINIX2" != x"y" \
14then 16|| test x"$CONFIG_FEATURE_MOUNT_LOOP" != x"y" \
15 echo "SKIPPED: mount" 17|| test x"$CONFIG_FEATURE_MOUNT_FLAGS" != x"y" \
16 exit 0 18|| test x"$CONFIG_FEATURE_DEVFS" = x"y" \
19; then
20 echo "SKIPPED: mount"
21 exit 0
17fi 22fi
18 23
19testdir=$PWD/testdir 24testdir=$PWD/mount.testdir
20 25
21dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; } 26dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; }
22mkfs.minix -v mount.image1m >/dev/null 2>&1 || { echo "mkfs.minix error"; exit 1; } 27mkfs.minix -v mount.image1m >/dev/null 2>&1 || { echo "mkfs.minix error"; exit 1; }