| 1 | #!/bin/shscip-shell filesystem . . `/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 | rmscip-shell system . . rm. -f $outfile |
| 9 | echoscip-shell system . . echo. "$MEMCHECK ${TIFFCP} -c lzw $infile $outfile" |
| 10 | eval "$MEMCHECK ${TIFFCP} -c lzw $infile $outfile" |
| 11 | status=$? |
| 12 | if [scip-shell system . . `[`. $status != 0 ] ; then |
| 13 | echoscip-shell system . . echo. "Returned failed status $status!" |
| 14 | echoscip-shell system . . echo. "Output (if any) is in \"${outfile}\"." |
| 15 | exit $status |
| 16 | fi |
| 17 | echoscip-shell system . . echo. "$MEMCHECK ${TIFFCMP} $outfile ${REFS}/$outfile" |
| 18 | eval "$MEMCHECK ${TIFFCMP} $outfile ${REFS}/$outfile" |
| 19 | status=$? |
| 20 | if [scip-shell system . . `[`. $status != 0 ] ; then |
| 21 | echoscip-shell system . . echo. "Returned failed status $status!" |
| 22 | echoscip-shell system . . echo. "\"${outfile}\" differs from reference file." |
| 23 | exit $status |
| 24 | fi |