libtiff/test/fax2tiff.sh

18 lines
427 B
Bash
Raw Normal View History

2019-03-22 05:00:52 -04:00
#!/bin/sh
#
# Basic sanity check for fax2tiff
#
. ${srcdir:-.}/common.sh
infile="${IMAGES}/miniswhite-1c-1b.g3"
outfile="o-fax2tiff.tiff"
rm -f $outfile
2019-03-22 05:00:52 -04:00
echo "$MEMCHECK ${FAX2TIFF} -M -o $outfile $infile"
eval $MEMCHECK ${FAX2TIFF} -M -o $outfile $infile
2019-03-22 05:00:52 -04:00
status=$?
if [ $status != 0 ] ; then
echo "Returned failed status $status!"
echo "Output (if any) is in \"${outfile}\"."
exit $status
fi
f_tiffinfo_validate $outfile