libtiff/test/tiffcp-thumbnail.sh
Bob Friesenhahn a4e657cc8a * test {tiff2pdf.sh tiff2ps-EPS1.sh tiff2ps-PS1.sh tiff2ps-PS2.sh
tiff2ps-PS3.sh tiffcp-g3-1d-fill.sh tiffcp-g3-1d.sh
tiffcp-g3-2d-fill.sh tiffcp-g3-2d.sh tiffcp-g3.sh tiffcp-g4.sh
tiffcp-split-join.sh tiffcp-split.sh tiffcp-thumbnail.sh
tiffdump.sh tiffinfo.sh}: Added more test scripts based on
suggestions from Lee Howard posted to the tiff list on 13 Sep
2007.
2008-05-24 22:24:25 +00:00

28 lines
523 B
Bash
Executable File

#!/bin/sh
#
# Basic sanity check for thumbnail
#
. ${srcdir}/common.sh
outfile1=deleteme-in-$$.tif
outfile2=deleteme-out-$$.tif
operation=tiffcp
${TIFFCP} -c g3:1d ${IMG_MINISWHITE_1C_1B} ${outfile1}
status=$?
if test status -eq 0
then
operation=thumbnail
${THUMBNAIL} ${outfile1} ${outfile2}
status=$?
fi
if test $status -eq 0
then
rm -f ${outfile1} ${outfile2}
else
echo "Test failed (${operation} returned ${status}). Please inspect these output files:"
echo " " ${outfile1} ${outfile2}
fi
exit $status