libtiff/test/tiffcp-thumbnail.sh
2008-09-02 02:26:19 +00:00

29 lines
539 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} 2> /dev/null
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