Debian Codegraph @

compat/libtiff/test/testdeflatelaststripextradata.sh

raw symbols SCIP
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # check decoding of a deflate compressed file whose last strip which should
4 # contain data for only 4 lines has more in it.
5 . ${srcdir:-.}/common.sh
6 infile="${IMAGES}/deflate-last-strip-extra-data.tiff"
7 outfile="o-deflate-last-strip-extra-data.tiff"
8 rmscip-shell system . . rm. -f $outfile
9 echoscip-shell system . . echo. "$MEMCHECK ${TIFFCP} -c zip $infile $outfile"
10 eval "$MEMCHECK ${TIFFCP} -c zip $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
25
26 outfile="o-deflate-last-strip-extra-data-tiled.tiff"
27 rmscip-shell system . . rm. -f $outfile
28 echoscip-shell system . . echo. "$MEMCHECK ${TIFFCP} -c zip -t -w 256 -l 256 $infile $outfile"
29 eval "$MEMCHECK ${TIFFCP} -c zip -t -w 256 -l 256 $infile $outfile"
30 status=$?
31 if [scip-shell system . . `[`. $status != 0 ] ; then
32 echoscip-shell system . . echo. "Returned failed status $status!"
33 echoscip-shell system . . echo. "Output (if any) is in \"${outfile}\"."
34 exit $status
35 fi
36 echoscip-shell system . . echo. "$MEMCHECK ${TIFFCMP} $outfile ${REFS}/o-deflate-last-strip-extra-data.tiff"
37 eval "$MEMCHECK ${TIFFCMP} $outfile ${REFS}/o-deflate-last-strip-extra-data.tiff"
38 status=$?
39 if [scip-shell system . . `[`. $status != 0 ] ; then
40 echoscip-shell system . . echo. "Returned failed status $status!"
41 echoscip-shell system . . echo. "\"${outfile}\" differs from reference file."
42 exit $status
43 fi