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