| 1 | #!/bin/sh |
| 2 | # |
| 3 | # check decoding of a CCITT Group 4 encoded TIFF |
| 4 | # with 0 length runs |
| 5 | . ${srcdir:-.}/common.sh |
| 6 | infile="${IMAGES}/testfax4.tiff" |
| 7 | outfile="o-testfax4.tiff" |
| 8 | rm -f $outfile |
| 9 | echo "$MEMCHECK ${TIFFCP} -c lzw $infile $outfile" |
| 10 | eval "$MEMCHECK ${TIFFCP} -c lzw $infile $outfile" |
| 11 | status=$? |
| 12 | if [ $status != 0 ] ; then |
| 13 | echo "Returned failed status $status!" |
| 14 | echo "Output (if any) is in \"${outfile}\"." |
| 15 | exit $status |
| 16 | fi |
| 17 | echo "$MEMCHECK ${TIFFCMP} $outfile ${REFS}/$outfile" |
| 18 | eval "$MEMCHECK ${TIFFCMP} $outfile ${REFS}/$outfile" |
| 19 | status=$? |
| 20 | if [ $status != 0 ] ; then |
| 21 | echo "Returned failed status $status!" |
| 22 | echo "\"${outfile}\" differs from reference file." |
| 23 | exit $status |
| 24 | fi |