9ebd845680
build.
25 lines
552 B
Bash
Executable File
25 lines
552 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Basic sanity check for tiffcp with G3 compression
|
|
#
|
|
. ${srcdir:-.}/common.sh
|
|
outfile=deleteme-raw-$$.tif
|
|
outfile2=deleteme-sgilog-$$.tif
|
|
infile=${srcdir:-.}/images/logluv-3c-16b.tiff
|
|
operation=tiffcp
|
|
${TIFFCP} -c none ${infile} ${outfile}
|
|
status=$?
|
|
|
|
if test $status -eq 0 ; then
|
|
${TIFFCP} -c sgilog ${outfile} ${outfile2}
|
|
fi
|
|
|
|
if test $status -eq 0 ; then
|
|
rm -f ${outfile} ${outfile2}
|
|
else
|
|
echo "Test failed (${operation} returns ${status}). Please inspect these output files:"
|
|
echo " " ${outfile} ${outfile2}
|
|
fi
|
|
|
|
exit $status
|