a4e657cc8a
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.
39 lines
893 B
Bash
Executable File
39 lines
893 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Basic sanity check for tiffcp + tiffsplit + tiffcp
|
|
#
|
|
# First we use tiffcp to join our test files into a multi-frame TIFF
|
|
# then we use tiffsplit to split them out again, and then we use
|
|
# tiffcp to recombine again.
|
|
|
|
. ${srcdir}/common.sh
|
|
conjoined=deleteme-conjoined-$$.tif
|
|
reconjoined=deleteme-reconjoined-$$.tif
|
|
splitfile=deleteme-split-$$
|
|
|
|
operation=tiffcp
|
|
${TIFFCP} ${IMG_UNCOMPRESSED} ${conjoined}
|
|
status=$?
|
|
if test $status -eq 0
|
|
then
|
|
operation=tiffsplit
|
|
${TIFFSPLIT} ${conjoined} ${splitfile}
|
|
status=$?
|
|
if test $status -eq 0
|
|
then
|
|
operation=tiffcp
|
|
${TIFFCP} ${splitfile}* ${reconjoined}
|
|
status=$?
|
|
fi
|
|
fi
|
|
|
|
if test $status -eq 0
|
|
then
|
|
rm -f ${conjoined} ${splitfile}* ${reconjoined}
|
|
else
|
|
echo "Test failed (${operation} returned ${status}). Please inspect these output files:"
|
|
echo " " ${conjoined} ${splitfile}* ${reconjoined}
|
|
fi
|
|
|
|
exit $status
|