2009-06-30 13:25:26 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
|
|
|
# Basic sanity check for tiffcp with G3 compression
|
|
|
|
#
|
|
|
|
. ${srcdir:-.}/common.sh
|
|
|
|
outfile=deleteme-raw-$$.tif
|
|
|
|
outfile2=deleteme-sgilog-$$.tif
|
2009-08-21 14:00:07 -04:00
|
|
|
infile=${srcdir:-.}/images/logluv-3c-16b.tiff
|
2009-06-30 13:25:26 -04:00
|
|
|
operation=tiffcp
|
2009-08-21 14:00:07 -04:00
|
|
|
${TIFFCP} -c none ${infile} ${outfile}
|
2009-06-30 13:25:26 -04:00
|
|
|
status=$?
|
|
|
|
|
|
|
|
if test $status -eq 0 ; then
|
|
|
|
${TIFFCP} -c sgilog ${outfile} ${outfile2}
|
|
|
|
fi
|
|
|
|
|
|
|
|
if test $status -eq 0 ; then
|
|
|
|
rm -f ${outfile} ${outfile2}
|
|
|
|
else
|
|
|
|
echo "Test failed (${operation} returns ${status}). Please inspect these output files:"
|
|
|
|
echo " " ${outfile} ${outfile2}
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit $status
|