3 # Run this test with a specific time, because we're crosslinking an extent tree
4 # block with the inode table. When fsck sets dtime to now, we want "now" to be
5 # our preprogrammed value.
8 IMAGE=$test_dir/image.gz
12 gzip -d < $IMAGE > $TMPFILE
14 # Run fsck to fix things?
15 EXP1=$test_dir/expect.1
18 $FSCK $FSCK_OPT -N test_filesys $TMPFILE 2>&1 | tail -n +2 > $OUT1
19 echo "Exit status is $?" >> $OUT1
22 EXP2=$test_dir/expect.2
25 $FSCK $FSCK_OPT -N test_filesys $TMPFILE 2>&1 | tail -n +2 > $OUT2
26 echo "Exit status is $?" >> $OUT2
28 # Figure out what happened
29 if cmp -s $EXP1 $OUT1 && cmp -s $EXP2 $OUT2; then
30 echo "$test_name: $test_description: ok"
33 echo "$test_name: $test_description: failed"
34 diff -u $EXP1 $OUT1 >> $test_name.failed
35 diff -u $EXP2 $OUT2 >> $test_name.failed