2007-09-19 17:51:00 -04:00
|
|
|
#!/bin/sh
|
|
|
|
#
|
2008-05-24 18:24:25 -04:00
|
|
|
# Basic sanity check for tiffinfo.
|
2007-09-19 17:51:00 -04:00
|
|
|
#
|
2009-01-23 00:37:18 -05:00
|
|
|
. ${srcdir:-.}/common.sh
|
2008-05-24 18:24:25 -04:00
|
|
|
outfile=deleteme-$$.txt
|
|
|
|
operation=tiffinfo
|
|
|
|
${TIFFINFO} -c -D -d -j -s ${IMG_MINISBLACK_1C_16B} > $outfile
|
|
|
|
status=$?
|
|
|
|
|
|
|
|
if test $status -eq 0
|
|
|
|
then
|
|
|
|
rm -f ${outfile}
|
|
|
|
else
|
|
|
|
echo "Test failed (${operation} returns ${status}). Please inspect these output files:"
|
|
|
|
echo " " ${outfile}
|
|
|
|
fi
|
|
|
|
|
|
|
|
exit $status
|