1 if [ "$DESCRIPTION"x != x ]; then
2 printf "%s" "$DESCRIPTION: "
4 if [ "$IMAGE"x = x ]; then
5 IMAGE=$test_dir/image.gz
8 if [ "$FSCK_OPT"x = x ]; then
12 if [ "$SECOND_FSCK_OPT"x = x ]; then
16 if [ "$OUT1"x = x ]; then
20 if [ "$OUT2"x = x ]; then
24 if [ "$EXP1"x = x ]; then
25 if [ -f $test_dir/expect.1.gz ]; then
27 gunzip < $test_dir/expect.1.gz > $EXP1
29 EXP1=$test_dir/expect.1
33 if [ "$EXP2"x = x ]; then
34 if [ -f $test_dir/expect.2.gz ]; then
36 gunzip < $test_dir/expect.2.gz > $EXP2
38 EXP2=$test_dir/expect.2
42 if [ "$SKIP_GUNZIP" != "true" ] ; then
43 gunzip < $IMAGE > $TMPFILE
50 $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT1.new 2>&1
52 echo Exit status is $status >> $OUT1.new
53 sed -e '1d' $OUT1.new | sed -e '/^JFS DEBUG:/d' | \
54 sed -e "s;$TMPFILE;test.img;" | tr -d \\015 >> $OUT1
57 if [ "$ONE_PASS_ONLY" != "true" ]; then
58 $FSCK $SECOND_FSCK_OPT -N test_filesys $TMPFILE > $OUT2.new 2>&1
60 echo Exit status is $status >> $OUT2.new
61 sed -e '1d' $OUT2.new | sed -e '/^JFS DEBUG:/d' | \
62 sed -e "s;$TMPFILE;test.img;" > $OUT2
68 if [ "$SKIP_UNLINK" != "true" ] ; then
72 if [ "$SKIP_VERIFY" != "true" ] ; then
73 rm -f $test_name.ok $test_name.failed
76 if [ "$ONE_PASS_ONLY" != "true" ]; then
83 if [ "$status1" = 0 -a "$status2" = 0 ] ; then
88 diff $DIFF_OPTS $EXP1 $OUT1 > $test_name.failed
89 if [ "$ONE_PASS_ONLY" != "true" ]; then
90 diff $DIFF_OPTS $EXP2 $OUT2 >> $test_name.failed
96 if [ "$SKIP_CLEANUP" != "true" ] ; then
97 unset IMAGE FSCK_OPT SECOND_FSCK_OPT OUT1 OUT2 EXP1 EXP2
98 unset SKIP_VERIFY SKIP_CLEANUP SKIP_GUNZIP ONE_PASS_ONLY PREP_CMD
99 unset DESCRIPTION SKIP_UNLINK AFTER_CMD