1 if ! test -x $RESIZE2FS_EXE -o ! -x $DEBUGFS_EXE; then
2 echo "$test_name: $test_description: skipped (no debugfs/resize2fs)"
6 IMAGE=$test_dir/image.gz
11 gunzip < $IMAGE > $TMPFILE
13 echo "resize2fs test" > $OUT
15 echo "resize2fs -M test.img" >> $OUT
16 $RESIZE2FS -M $TMPFILE 2>&1 >> $OUT.new 2>&1
18 echo Exit status is $status >> $OUT.new
21 echo fsck $FSCK_OPT -N test_filesys test.img >> $OUT.new
22 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
23 echo Exit status is $status >> $OUT.new
25 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
35 if [ "$status" = 0 ] ; then
36 echo "$test_name: $test_description: ok"
39 echo "$test_name: $test_description: failed"
40 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
43 unset IMAGE FSCK_OPT OUT EXP