1test_description="e2image bitmap read/write test" 2 3IMAGE=$test_dir/image.bz2 4OUT=$test_name.log 5EXP=$test_dir/expect 6 7bzip2 -d < $IMAGE > $TMPFILE 8$E2IMAGE $TMPFILE $TMPFILE.e2i > $OUT 2>&1 9$DUMPE2FS $TMPFILE > $TMPFILE.1 2>&1 10$DUMPE2FS -i $TMPFILE.e2i > $TMPFILE.2 2>&1 11diff $TMPFILE.1 $TMPFILE.2 >> $OUT 2>&1 12 13sed -f $cmd_dir/filter.sed -e "s;$TMPFILE;test_filesys;" $OUT > $OUT.new 14mv $OUT.new $OUT 15 16cmp -s $OUT $EXP 17status=$? 18if [ "$status" = 0 ] ; then 19 echo "$test_name: $test_description: ok" 20 touch $test_name.ok 21else 22 echo "$test_name: $test_description: failed" 23 diff $DIFF_OPTS $EXP $OUT > $test_name.failed 24 rm -f $test_name.tmp 25fi 26 27rm -rf $TMPFILE $TMPFILE.bin $TMPFILE.1 $TMPFILE.2 $TMPFILE.e2i 28unset IMAGE FSCK_OPT OUT EXP 29