1 if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
3 IMAGE=$test_dir/image.gz
8 gunzip < $IMAGE > $TMPFILE
10 echo "resize2fs test" > $OUT
12 echo "resize2fs -M test.img" >> $OUT
13 $RESIZE2FS -M $TMPFILE 2>&1 >> $OUT.new 2>&1
15 echo Exit status is $status >> $OUT.new
18 echo fsck $FSCK_OPT -N test_filesys test.img >> $OUT.new
19 $FSCK $FSCK_OPT -N test_filesys $TMPFILE >> $OUT.new 2>&1
20 echo Exit status is $status >> $OUT.new
22 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test.img;" $OUT.new >> $OUT
32 if [ "$status" = 0 ] ; then
33 echo "$test_name: $test_description: ok"
36 echo "$test_name: $test_description: failed"
37 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
40 unset IMAGE FSCK_OPT OUT EXP
42 else #if test -x $RESIZE2FS_EXE -a -x $DEBUGFS_EXE; then
43 echo "$test_name: $test_description: skipped"