Debian Codegraph @

texk/xdvipsk/thirdparty/libtiff/test/testfax3_bug_513.sh

raw symbols SCIP
1 #!/bin/sh
2 #
3 # check decoding of a CCITT Group 3 encoded TIFF
4 # hitting https://gitlab.com/libtiff/libtiff/-/issues/513
5 . ${srcdir:-.}/common.sh
6 infile="${IMAGES}/testfax3_bug_513.tiff"
7 outfile="o-testfax3_bug_513.tiff"
8 rm -f $outfile
9 echo "$MEMCHECK ${TIFFCP} -c none $infile $outfile"
10 eval "$MEMCHECK ${TIFFCP} -c none $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