roentgen b75cab
#!/bin/sh
roentgen b75cab
#
roentgen b75cab
# Basic sanity check for tiffcp + tiffsplit + tiffcp
roentgen b75cab
#
roentgen b75cab
# First we use tiffcp to join our test files into a multi-frame TIFF
roentgen b75cab
# then we use tiffsplit to split them out again, and then we use
roentgen b75cab
# tiffcp to recombine again.
roentgen b75cab
roentgen b75cab
. ${srcdir:-.}/common.sh
roentgen b75cab
conjoined=o-tiffcp-split-join-conjoined.tif
roentgen b75cab
reconjoined=o-tiffcp-split-join-reconjoined.tif
roentgen b75cab
splitfile=o-tiffcp-split-join-split-
roentgen b75cab
roentgen b75cab
f_test_convert "${TIFFCP}" "${IMG_UNCOMPRESSED}" "${conjoined}"
roentgen b75cab
f_test_convert "${TIFFSPLIT}" "${conjoined}" "${splitfile}"
roentgen b75cab
f_test_convert "${TIFFCP}" "${splitfile}*" "${reconjoined}"