1 if [ "$DESCRIPTION"x != x ]; then
2 echo -n "$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 EXP1=$test_dir/expect.1
28 if [ "$EXP2"x = x ]; then
29 EXP2=$test_dir/expect.2
32 if [ "$SKIP_GUNZIP" != "true" ] ; then
33 gunzip < $IMAGE > $TMPFILE
40 $FSCK $FSCK_OPT -N test_filesys $TMPFILE > $OUT1.new 2>&1
42 echo Exit status is $status >> $OUT1.new
43 sed -e '1d' $OUT1.new | sed -e '/^JFS DEBUG:/d' | tr -d \\015 >> $OUT1
46 if [ "$ONE_PASS_ONLY" != "true" ]; then
47 $FSCK $SECOND_FSCK_OPT -N test_filesys $TMPFILE > $OUT2.new 2>&1
49 echo Exit status is $status >> $OUT2.new
50 sed -e '1d' $OUT2.new | sed -e '/^JFS DEBUG:/d' > $OUT2
56 if [ "$SKIP_VERIFY" != "true" ] ; then
57 rm -f $test_name.ok $test_name.failed
60 if [ "$ONE_PASS_ONLY" != "true" ]; then
67 if [ "$status1" = 0 -a "$status2" = 0 ] ; then
72 diff -c $EXP1 $OUT1 > $test_name.failed
73 if [ "$ONE_PASS_ONLY" != "true" ]; then
74 diff -c $EXP2 $OUT2 >> $test_name.failed
79 if [ "$SKIP_CLEANUP" != "true" ] ; then
80 unset IMAGE FSCK_OPT SECOND_FSCK_OPT OUT1 OUT2 EXP1 EXP2
81 unset SKIP_VERIFY SKIP_CLEANUP SKIP_GUNZIP ONE_PASS_ONLY PREP_CMD