Whamcloud - gitweb
tests: clean up $DEBUGFS_EXE usage in scripts
[tools/e2fsprogs.git] / tests / r_bigalloc_big_expand / script
1 test_description="ext4 with bigalloc"
2 if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then
3         echo "$test_name: $test_description: skipped (no debugfs/resize2fs)"
4         return 0
5 fi
6
7 FEATURES="-t ext4 -O bigalloc"
8 SIZE_1=512M
9 SIZE_2=2T
10 LOG=$test_name.log
11 E2FSCK=../e2fsck/e2fsck
12 RESIZE2FS_OPTS=-f
13
14 if [ $(uname -s) = "FreeBSD" ]; then
15         # creates a 2TB filesystem
16         echo "$test_name: $DESCRIPTION: skipped for FreeBSD"
17         return 0
18 fi
19
20 . $cmd_dir/scripts/resize_test
21
22 resize_test
23 RC=$?
24 if [ $RC -eq 0 ]; then
25         echo "$test_name: $test_description: ok"
26         touch $test_name.ok
27 elif [ $RC -eq 111 ]; then
28         echo "$test_name: $test_description: skipped"
29         touch $test_name.ok
30 else
31         echo "$test_name: $test_description: failed"
32         ln $LOG $test_name.failed
33 fi
34
35 unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK