]> git.ipfire.org Git - thirdparty/e2fsprogs.git/blame - tests/r_ext4_small_bg/script
tests: clean up $DEBUGFS_EXE usage in scripts
[thirdparty/e2fsprogs.git] / tests / r_ext4_small_bg / script
CommitLineData
e79a9395 1test_description="ext4 1024 blocksize with small block groups"
3819bff4
AD
2if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then
3 echo "$test_name: $test_description: skipped (no debugfs/resize2fs)"
4 return 0
5fi
6
e79a9395
TT
7FEATURES="-t ext4 -O ^resize_inode -b 1024 -g 512"
8SIZE_1=64M
9SIZE_2=2G
10LOG=$test_name.log
11E2FSCK=../e2fsck/e2fsck
12
13
14. $cmd_dir/scripts/resize_test
15
5bb66e37
AD
16resize_test
17RC=$?
18if [ $RC -eq 0 ]; then
e79a9395
TT
19 echo "$test_name: $test_description: ok"
20 touch $test_name.ok
5bb66e37
AD
21elif [ $RC -eq 111 ]; then
22 echo "$test_name: $test_description: skipped"
23 touch $test_name.ok
e79a9395
TT
24else
25 echo "$test_name: $test_description: failed"
5bb66e37 26 ln $LOG $test_name.failed
e79a9395
TT
27fi
28
29unset FEATURES SIZE_1 SIZE_2 LOG E2FSCK