3 if [ -f $test_dir/expect.gz ]; then
5 gunzip < $test_dir/expect.gz > $EXP1
10 dd if=/dev/zero of=$TMPFILE bs=1k count=512 > /dev/null 2>&1
12 gzip -d < $test_dir/image.gz > $TMPFILE
14 old="$($CRCSUM < $TMPFILE)"
16 $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT.new 2>&1
18 echo Exit status is $status >> $OUT.new
20 new="$($CRCSUM < $TMPFILE)"
22 if [ "${old}" != "${new}" ]; then
23 echo "ERROR: crc mismatch! ${old} ${new}" >> $OUT.new
25 echo "crc did not change. ${old}" >> $OUT.new
28 sed -f $cmd_dir/filter.sed $OUT.new > $OUT
29 rm -f $TMPFILE $OUT.new
34 if [ "$status" = 0 ] ; then
35 echo "$test_name: $test_description: ok"
38 echo "$test_name: $test_description: failed"
39 diff $DIFF_OPTS $EXP $OUT > $test_name.failed
43 unset IMAGE FSCK_OPT OUT EXP old new