1 test_description="e2image corrupt fs"
3 IMAGE=$test_dir/image.gz
7 gzip -d < $IMAGE > $TMPFILE
8 $E2IMAGE -r $TMPFILE $TMPFILE.bin > $OUT 2>&1
9 $FSCK -fn $TMPFILE.bin >> $OUT 2>&1
11 sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test_filesys;" $OUT > $OUT.new
16 if [ "$status" = 0 ] ; then
17 echo "$test_name: $test_description: ok"
20 echo "$test_name: $test_description: failed"
21 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
25 rm -f $OUT $TMPFILE $TMPFILE.bin $TMPFILE.test
26 unset IMAGE FSCK_OPT OUT EXP