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