| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | # |
| 3 | # Basic sanity check for fax2tiff |
| 4 | # |
| 5 | . ${srcdir:-.}/common.sh |
| 6 | infile="${IMAGES}/miniswhite-1c-1b.g3" |
| 7 | outfile="o-fax2tiff.tiff" |
| 8 | rmscip-shell system . . rm. -f $outfile |
| 9 | echoscip-shell system . . echo. "$MEMCHECK ${FAX2TIFF} -M -o $outfile $infile" |
| 10 | eval $MEMCHECK ${FAX2TIFF} -M -o $outfile $infile |
| 11 | status=$? |
| 12 | if [scip-shell system . . `[`. $status != 0 ] ; then |
| 13 | echoscip-shell system . . echo. "Returned failed status $status!" |
| 14 | echoscip-shell system . . echo. "Output (if any) is in \"${outfile}\"." |
| 15 | exit $status |
| 16 | fi |
| 17 | f_tiffinfo_validate $outfile |