4 IMAGE=$test_dir/image.bz2
6 bzip2 -d < $IMAGE > $TMPFILE
8 # Run fsck to fix things?
9 EXP1=$test_dir/expect.1
12 $FSCK $FSCK_OPT -N test_filesys $TMPFILE 2>&1 | head -n 1000 | tail -n +2 > $OUT1
13 echo "Exit status is $?" >> $OUT1
16 EXP2=$test_dir/expect.2
19 $FSCK $FSCK_OPT -N test_filesys $TMPFILE 2>&1 | head -n 1000 | tail -n +2 > $OUT2
20 echo "Exit status is $?" >> $OUT2
22 # Figure out what happened
23 if cmp -s $EXP1 $OUT1 && cmp -s $EXP2 $OUT2; then
24 echo "$test_name: $test_description: ok"
27 echo "$test_name: $test_description: failed"
28 diff -u $EXP1 $OUT1 >> $test_name.failed
29 diff -u $EXP2 $OUT2 >> $test_name.failed