diff options
Diffstat (limited to 'testsuite/mount.tests')
-rwxr-xr-x | testsuite/mount.tests | 19 |
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 | ||
7 | test -f "$bindir/.config" && . "$bindir/.config" | ||
8 | |||
7 | test "`id -u`" = 0 || { | 9 | test "`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 | ||
12 | optional MKFS_MINIX | 14 | if test x"$CONFIG_MKFS_MINIX" != x"y" \ |
13 | if [ -n "$SKIP" ] | 15 | || test x"$CONFIG_FEATURE_MINIX2" != x"y" \ |
14 | then | 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 | ||
17 | fi | 22 | fi |
18 | 23 | ||
19 | testdir=$PWD/testdir | 24 | testdir=$PWD/mount.testdir |
20 | 25 | ||
21 | dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; } | 26 | dd if=/dev/zero of=mount.image1m count=1 bs=1M 2>/dev/null || { echo "dd error"; exit 1; } |
22 | mkfs.minix -v mount.image1m >/dev/null 2>&1 || { echo "mkfs.minix error"; exit 1; } | 27 | mkfs.minix -v mount.image1m >/dev/null 2>&1 || { echo "mkfs.minix error"; exit 1; } |