add a test for fax2tiff tool
This commit is contained in:
parent
88b410f800
commit
933575f505
@ -35,6 +35,7 @@ set(TESTSCRIPTS
|
||||
ppm2tiff_pbm.sh
|
||||
ppm2tiff_pgm.sh
|
||||
ppm2tiff_ppm.sh
|
||||
fax2tiff.sh
|
||||
tiffcp-g3.sh
|
||||
tiffcp-g3-1d.sh
|
||||
tiffcp-g3-1d-fill.sh
|
||||
@ -151,6 +152,7 @@ set(UNCOMPRESSEDIMAGES
|
||||
# files which are not currently used by the tests.
|
||||
set(IMAGES_EXTRA_DIST
|
||||
images/README.txt
|
||||
images/miniswhite-1c-1b.g3
|
||||
${BMPIMAGES}
|
||||
${GIFIMAGES}
|
||||
${PNMIMAGES}
|
||||
|
@ -70,6 +70,7 @@ TESTSCRIPTS = \
|
||||
ppm2tiff_pbm.sh \
|
||||
ppm2tiff_pgm.sh \
|
||||
ppm2tiff_ppm.sh \
|
||||
fax2tiff.sh \
|
||||
tiffcp-g3.sh \
|
||||
tiffcp-g3-1d.sh \
|
||||
tiffcp-g3-1d-fill.sh \
|
||||
@ -172,6 +173,7 @@ PNMIMAGES = \
|
||||
# files which are not currently used by the tests.
|
||||
IMAGES_EXTRA_DIST = \
|
||||
images/README.txt \
|
||||
images/miniswhite-1c-1b.g3 \
|
||||
$(PNMIMAGES) \
|
||||
$(TIFFIMAGES)
|
||||
|
||||
|
16
test/fax2tiff.sh
Executable file
16
test/fax2tiff.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Basic sanity check for fax2tiff
|
||||
#
|
||||
. ${srcdir:-.}/common.sh
|
||||
infile="${IMAGES}/miniswhite-1c-1b.g3"
|
||||
outfile="o-fax2tiff.tiff"
|
||||
echo "$MEMCHECK ${FAX2TIFF} -M -o $outfile $infile"
|
||||
eval "$MEMCHECK" "${FAX2TIFF}" "-M" "-o" "$outfile" "$infile"
|
||||
status=$?
|
||||
if [ $status != 0 ] ; then
|
||||
echo "Returned failed status $status!"
|
||||
echo "Output (if any) is in \"${outfile}\"."
|
||||
exit $status
|
||||
fi
|
||||
f_tiffinfo_validate $outfile
|
@ -27,3 +27,6 @@ PNM files:
|
||||
minisblack-1c-8b.pgm
|
||||
miniswhite-1c-1b.pbm
|
||||
rgb-3c-8b.ppm
|
||||
|
||||
G3 Fax files :
|
||||
miniswhite-1c-1b.g3
|
||||
|
BIN
test/images/miniswhite-1c-1b.g3
Normal file
BIN
test/images/miniswhite-1c-1b.g3
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user